Skip to content

Commit

Permalink
fix unneeded import
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee committed Oct 20, 2023
1 parent 2b96ca7 commit 6c3d786
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_geometry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pytest

import mindee.geometry.polygon_utils
from mindee import geometry


Expand Down Expand Up @@ -33,19 +32,19 @@ def test_bbox(rectangle_a, rectangle_b, quadrangle_a):


def test_bounding_box_single_polygon(rectangle_a, rectangle_b, quadrangle_a):
assert mindee.geometry.get_bounding_box(rectangle_a) == (
assert geometry.get_bounding_box(rectangle_a) == (
(0.123, 0.53),
(0.175, 0.53),
(0.175, 0.546),
(0.123, 0.546),
)
assert mindee.geometry.get_bounding_box(rectangle_b) == (
assert geometry.get_bounding_box(rectangle_b) == (
geometry.Point(0.124, 0.535),
geometry.Point(0.19, 0.535),
geometry.Point(0.19, 0.546),
geometry.Point(0.124, 0.546),
)
assert mindee.geometry.get_bounding_box(quadrangle_a) == (
assert geometry.get_bounding_box(quadrangle_a) == (
(0.205, 0.407),
(0.381, 0.407),
(0.381, 0.43),
Expand Down Expand Up @@ -89,7 +88,7 @@ def test_get_centroid(rectangle_a):

def test_bounding_box_several_polygons(rectangle_b, quadrangle_a):
merged = geometry.merge_polygons((rectangle_b, quadrangle_a))
assert mindee.geometry.get_bounding_box(merged) == (
assert geometry.get_bounding_box(merged) == (
(0.124, 0.407),
(0.381, 0.407),
(0.381, 0.546),
Expand Down

0 comments on commit 6c3d786

Please sign in to comment.