Skip to content

Commit

Permalink
Forgot to update Python method names in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rouslan committed Jan 25, 2025
1 parent ce1ee02 commit 9e22d06
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions py/tests/test_bitmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ def _run_op(self,op,nonzero_offset=False):
test_img = np.zeros_like(target_img)

if offset:
self.clip.add_loops_offset_subject(item.set_data[polyops.BoolSet.subject],offset,OFFSET_ARC_STEP_SIZE)
self.clip.add_loops_offset_clip(item.set_data[polyops.BoolSet.clip],offset,OFFSET_ARC_STEP_SIZE)
self.clip.add_offsets_subject(item.set_data[polyops.BoolSet.subject],offset,OFFSET_ARC_STEP_SIZE)
self.clip.add_offsets_clip(item.set_data[polyops.BoolSet.clip],offset,OFFSET_ARC_STEP_SIZE)
else:
self.clip.add_loops_subject(item.set_data[polyops.BoolSet.subject])
self.clip.add_loops_clip(item.set_data[polyops.BoolSet.clip])
Expand Down
2 changes: 1 addition & 1 deletion py/tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def tracked_offset_check(self,loop,offset,arc_step_size,clipper):
if clipper is None:
result = polyops.offset([loop],offset,arc_step_size,track_points=True)
else:
clipper.add_loop_offset_subject(loop,offset,arc_step_size)
clipper.add_offset_subject(loop,offset,arc_step_size)
result = clipper.execute(polyops.BoolOp.union)
self.assertEqual(len(result),1)
box2 = result[0]
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tox]
requires = tox>=4
env_list = py{39,310,311,312}
env_list = py{39,310,311,312,313}

[testenv]
description = run tests
commands = python -m polyops.tests.btest
commands = python -m polyops.tests

0 comments on commit 9e22d06

Please sign in to comment.