diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-11-06 14:44:40 -0500 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-11-06 14:44:40 -0500 |
commit | 422c86bcc684ea94515862b0dd3a39ce0f4bd86f (patch) | |
tree | a1efe6504e40083e61dcbe412c243fd8c00628f3 /gerber/tests/test_primitives.py | |
parent | ede065e6d16e1e4ffe970c8b13945139b3f4bcb2 (diff) | |
parent | 22e668c75f24174d2090443ed98e804b3737bd84 (diff) | |
download | gerbonara-422c86bcc684ea94515862b0dd3a39ce0f4bd86f.tar.gz gerbonara-422c86bcc684ea94515862b0dd3a39ce0f4bd86f.tar.bz2 gerbonara-422c86bcc684ea94515862b0dd3a39ce0f4bd86f.zip |
Merge upstream changes
Diffstat (limited to 'gerber/tests/test_primitives.py')
-rw-r--r-- | gerber/tests/test_primitives.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gerber/tests/test_primitives.py b/gerber/tests/test_primitives.py index 9aeec68..52d774c 100644 --- a/gerber/tests/test_primitives.py +++ b/gerber/tests/test_primitives.py @@ -26,6 +26,7 @@ def test_primitive_smoketest(): # pass + def test_line_angle(): """ Test Line primitive angle calculation """ @@ -349,7 +350,6 @@ def test_circle_conversion(): assert_equal(c.hole_diameter, 127.) - def test_circle_offset(): c = Circle((0, 0), 1) c.offset(1, 0) @@ -887,7 +887,6 @@ def test_polygon_ctor(): assert_equal(p.hole_diameter, hole_diameter) - def test_polygon_bounds(): """ Test polygon bounding box calculation """ @@ -1209,6 +1208,7 @@ def test_drill_ctor_validation(): assert_raises(TypeError, Drill, (3,4,5), 5, None) + def test_drill_bounds(): d = Drill((0, 0), 2, None) xbounds, ybounds = d.bounding_box @@ -1223,7 +1223,7 @@ def test_drill_bounds(): def test_drill_conversion(): d = Drill((2.54, 25.4), 254., None, units='metric') - # No effect + #No effect d.to_metric() assert_equal(d.position, (2.54, 25.4)) assert_equal(d.diameter, 254.0) @@ -1232,7 +1232,7 @@ def test_drill_conversion(): assert_equal(d.position, (0.1, 1.0)) assert_equal(d.diameter, 10.0) - # No effect + #No effect d.to_inch() assert_equal(d.position, (0.1, 1.0)) assert_equal(d.diameter, 10.0) |