Fixed flake8 issues (indentation and obsolete request)

This commit is contained in:
Salvador E. Tropea 2021-02-01 11:28:11 -03:00
parent 7413f12924
commit 01131bfc64
4 changed files with 8 additions and 8 deletions

View File

@ -53,7 +53,7 @@ def run_compress(ctx, test_import_fail=False):
# Run the compression and catch the error # Run the compression and catch the error
with pytest.raises(SystemExit) as pytest_wrapped_e: with pytest.raises(SystemExit) as pytest_wrapped_e:
if test_import_fail: 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: else:
out.run('') out.run('')
# Stop coverage # Stop coverage

View File

@ -165,7 +165,8 @@ def test_3Rs_position_unified_th_csv(test_dir):
def test_3Rs_position_inches_csv(test_dir): def test_3Rs_position_inches_csv(test_dir):
""" Also test a compressed configuration YAML file """ """ 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() ctx.run()
pos_top = ctx.get_pos_top_csv_filename() pos_top = ctx.get_pos_top_csv_filename()
pos_bot = ctx.get_pos_bot_csv_filename() pos_bot = ctx.get_pos_bot_csv_filename()

View File

@ -68,9 +68,9 @@ def test_sch_errors_l3(test_dir):
def test_sch_errors_l5(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', 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 square definition', 'Unknown circle definition', 'Unknown arc definition',
'Unknown text definition', 'Unknown pin definition', 'Failed to load component definition', 'Unknown text definition', 'Unknown pin definition', 'Failed to load component definition',
'Unknown draw element']) 'Unknown draw element'])
def test_sch_errors_l6(test_dir): 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): def test_sch_errors_ar(test_dir):
setup_ctx(test_dir, 'ar', ['Unknown AR field .?Bogus.?', 'Alternative Reference without path', setup_ctx(test_dir, 'ar', ['Unknown AR field .?Bogus.?', 'Alternative Reference without path',
'Alternative Reference without reference', 'Component `U1` without the basic fields', 'Alternative Reference without reference', 'Component `U1` without the basic fields',
'Footprint with more than one colon']) 'Footprint with more than one colon'])
def test_sch_errors_miss_label(test_dir): def test_sch_errors_miss_label(test_dir):

View File

@ -5,7 +5,6 @@ import tempfile
import logging import logging
import subprocess import subprocess
import re import re
import pytest
import csv import csv
from glob import glob from glob import glob
from pty import openpty from pty import openpty