diff --git a/tests/test_plot/test_misc_2.py b/tests/test_plot/test_misc_2.py index bd069ae4..0de9183a 100644 --- a/tests/test_plot/test_misc_2.py +++ b/tests/test_plot/test_misc_2.py @@ -53,7 +53,7 @@ def run_compress(ctx, test_import_fail=False): # Run the compression and catch the error with pytest.raises(SystemExit) as pytest_wrapped_e: if test_import_fail: - _import('out_bogus', os.path.abspath(os.path.join(os.path.dirname(__file__),'fake_plugin/out_bogus.py'))) + _import('out_bogus', os.path.abspath(os.path.join(os.path.dirname(__file__), 'fake_plugin/out_bogus.py'))) else: out.run('') # Stop coverage diff --git a/tests/test_plot/test_position.py b/tests/test_plot/test_position.py index 9e50a85f..b9a15760 100644 --- a/tests/test_plot/test_position.py +++ b/tests/test_plot/test_position.py @@ -165,7 +165,8 @@ def test_3Rs_position_unified_th_csv(test_dir): def test_3Rs_position_inches_csv(test_dir): """ Also test a compressed configuration YAML file """ - ctx = context.TestContext(test_dir, '3Rs_position_inches_csv', '3Rs', 'simple_position_inches_csv', POS_DIR, yaml_compressed=True) + ctx = context.TestContext(test_dir, '3Rs_position_inches_csv', '3Rs', 'simple_position_inches_csv', POS_DIR, + yaml_compressed=True) ctx.run() pos_top = ctx.get_pos_top_csv_filename() pos_bot = ctx.get_pos_bot_csv_filename() diff --git a/tests/test_plot/test_sch_errors.py b/tests/test_plot/test_sch_errors.py index e590be54..709e1b3d 100644 --- a/tests/test_plot/test_sch_errors.py +++ b/tests/test_plot/test_sch_errors.py @@ -68,9 +68,9 @@ def test_sch_errors_l3(test_dir): def test_sch_errors_l5(test_dir): setup_ctx(test_dir, 'l5', ['Unknown poligon definition', 'Expected 6 coordinates and got 8 in poligon', - 'Unknown square definition', 'Unknown circle definition', 'Unknown arc definition', - 'Unknown text definition', 'Unknown pin definition', 'Failed to load component definition', - 'Unknown draw element']) + 'Unknown square definition', 'Unknown circle definition', 'Unknown arc definition', + 'Unknown text definition', 'Unknown pin definition', 'Failed to load component definition', + 'Unknown draw element']) def test_sch_errors_l6(test_dir): @@ -99,8 +99,8 @@ def test_sch_errors_field_name(test_dir): def test_sch_errors_ar(test_dir): setup_ctx(test_dir, 'ar', ['Unknown AR field .?Bogus.?', 'Alternative Reference without path', - 'Alternative Reference without reference', 'Component `U1` without the basic fields', - 'Footprint with more than one colon']) + 'Alternative Reference without reference', 'Component `U1` without the basic fields', + 'Footprint with more than one colon']) def test_sch_errors_miss_label(test_dir): diff --git a/tests/utils/context.py b/tests/utils/context.py index ef4ba7c4..06902925 100644 --- a/tests/utils/context.py +++ b/tests/utils/context.py @@ -5,7 +5,6 @@ import tempfile import logging import subprocess import re -import pytest import csv from glob import glob from pty import openpty