diff options
author | jaseg <git@jaseg.de> | 2022-06-21 11:00:04 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-06-21 11:00:04 +0200 |
commit | 432524caa6a2e039e7d766f0cbbc789b449fada9 (patch) | |
tree | c847b7fdb5875b944ca51b64a949d15ba8838193 /gerbonara/tests | |
parent | 0f70b225cc394338e9c37c1b1c34c3e73609f7d6 (diff) | |
download | gerbonara-432524caa6a2e039e7d766f0cbbc789b449fada9.tar.gz gerbonara-432524caa6a2e039e7d766f0cbbc789b449fada9.tar.bz2 gerbonara-432524caa6a2e039e7d766f0cbbc789b449fada9.zip |
tests: whittle down test cases a bit
Diffstat (limited to 'gerbonara/tests')
-rw-r--r-- | gerbonara/tests/test_rs274x.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gerbonara/tests/test_rs274x.py b/gerbonara/tests/test_rs274x.py index 5d3a0c7..04243a3 100644 --- a/gerbonara/tests/test_rs274x.py +++ b/gerbonara/tests/test_rs274x.py @@ -303,7 +303,7 @@ def test_idempotence(reference, tmpfile): assert tmp_gbr_1.read_text() == tmp_gbr_2.read_text() -TEST_ANGLES = [90, 180, 270, 30, 1.5, 10, 360, 1024, -30, -90] +TEST_ANGLES = [90, 180, 270, 1.5, 30, 360, 1024, -30] TEST_OFFSETS = [(0, 0), (100, 0), (0, 100), (2, 0), (10, 100)] @filter_syntax_warnings @@ -329,7 +329,7 @@ def test_rotation(reference, angle, tmpfile): @filter_syntax_warnings @pytest.mark.parametrize('reference', MIN_REFERENCE_FILES, indirect=True) @pytest.mark.parametrize('angle', TEST_ANGLES) -@pytest.mark.parametrize('center', [(0, 0), (-10, -10), (10, 10), (10, 0), (0, -10), (-10, 10), (10, 20)]) +@pytest.mark.parametrize('center', [(0, 0), (10, 0), (0, -10), (10, 20)]) def test_rotation_center(reference, angle, center, tmpfile): if 'flash_rectangle' in str(reference) and angle in (30, 1024): # gerbv's rendering of this is broken, the hole is missing. @@ -372,7 +372,7 @@ def test_offset(reference, offset, tmpfile): @pytest.mark.parametrize('reference', MIN_REFERENCE_FILES, indirect=True) @pytest.mark.parametrize('angle', TEST_ANGLES) @pytest.mark.parametrize('center', [(0, 0), (10, 0), (0, -10), (10, 20)]) -@pytest.mark.parametrize('offset', [(0, 0), (100, 0), (0, 100), (100, 100), (100, 10)]) +@pytest.mark.parametrize('offset', [(0, 0), (100, 0), (0, 100), (100, 10)]) def test_combined(reference, angle, center, offset, tmpfile): if 'flash_rectangle' in str(reference) and angle in (30, 1024): # gerbv's rendering of this is broken, the hole is missing. |