Skip to content

Commit

Permalink
test_pyclipper: check pyclipper.__version__ exists and is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Jun 25, 2021
1 parent 1d003cd commit 19fcc36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_pyclipper.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,12 @@ def test_sympyzero(self):
assert path == [[0, 0], [0, 2147483648]]


class TestPackageVersion(TestCase):
def test__version__(self):
assert hasattr(pyclipper, "__version__")
assert isinstance(pyclipper.__version__, str)


def _do_solutions_match(paths_1, paths_2, factor=None):
if len(paths_1) != len(paths_2):
return False
Expand Down

0 comments on commit 19fcc36

Please sign in to comment.