Skip to content

Commit

Permalink
fix de tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Jun 27, 2024
1 parent 8352fba commit 7d94ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holonote/tests/test_display.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_get_indices_by_position_nearest_2d_point_threshold(self, annotator_poin
indices = display.get_indices_by_position(x=x + 0.5, y=y + 0.5)
assert len(indices) == 0

display.nearest_2d_point_threshold = 5
display._nearest_2d_point_threshold = 5
indices = display.get_indices_by_position(x=x + 0.5, y=y + 0.5)
assert len(indices) == 1

Expand All @@ -48,7 +48,7 @@ def test_get_indices_by_position_multi_choice(self, annotator_point2d):
annotator_point2d.add_annotation(description=description)

display = annotator_point2d.get_display("x", "y")
display.nearest_2d_point_threshold = 1000
display._nearest_2d_point_threshold = 1000

indices = display.get_indices_by_position(x=x, y=y)
assert len(indices) == 1

0 comments on commit 7d94ee2

Please sign in to comment.