Skip to content

Commit dbdcb51

Browse files
tomvanmelegonzalocasas
authored andcommitted
Remove lint in test_predicates_2.py
1 parent 7b713b6 commit dbdcb51

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/compas/geometry/predicates/test_predicates_2.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ def test_is_point_in_circle_xy_class_input():
2929

3030
def test_is_polygon_in_polygon_xy():
3131
polygon_contour = Polygon([(0, 0, 0), (4, 2, 0), (10, 0, 0), (11, 10, 0), (8, 12, 0), (0, 10, 0)])
32-
polygon_inside = Polygon([(5, 5, 0), (10, 5, 0), (10, 10 ,0), (5, 10, 0)])
33-
assert is_polygon_in_polygon_xy(polygon_contour, polygon_inside) is True
32+
polygon_inside = Polygon([(5, 5, 0), (10, 5, 0), (10, 10 , 0), (5, 10, 0)])
33+
assert is_polygon_in_polygon_xy(polygon_contour, polygon_inside)
3434

3535
polygon_outside = Polygon([(15, 5, 0), (20, 5, 0), (20, 10, 0), (15, 10, 0)])
36-
assert is_polygon_in_polygon_xy(polygon_contour, polygon_outside) is False
36+
assert not is_polygon_in_polygon_xy(polygon_contour, polygon_outside)
3737

3838
polygon_intersecting = Polygon([(10, 10, 0), (10, 5, 0), (15, 5, 0), (15, 10, 0)])
39-
assert is_polygon_in_polygon_xy(polygon_contour, polygon_intersecting) is False
39+
assert not is_polygon_in_polygon_xy(polygon_contour, polygon_intersecting)
4040

4141
# shifting the vertices list of the same polygon shouldn't affect the containment check output anymore
4242
polygon_intersecting_shifted = Polygon(polygon_intersecting[1:] + polygon_intersecting[:1])
43-
assert is_polygon_in_polygon_xy(polygon_contour, polygon_intersecting_shifted) is False
43+
assert not is_polygon_in_polygon_xy(polygon_contour, polygon_intersecting_shifted)

0 commit comments

Comments
 (0)