mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
test: check that exporter.library is >= 2.3.1 not == 2.3.1
This commit is contained in:
parent
8e798f2b57
commit
b31c9e9634
1 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import unittest, uuid
|
||||
from packaging.specifiers import SpecifierSet
|
||||
from build123d.build_enums import MeshType, Unit
|
||||
from build123d.build_part import BuildPart
|
||||
from build123d.build_sketch import BuildSketch
|
||||
|
|
@ -36,7 +37,7 @@ class DirectApiTestCase(unittest.TestCase):
|
|||
class TestProperties(unittest.TestCase):
|
||||
def test_version(self):
|
||||
exporter = Mesher()
|
||||
self.assertEqual(exporter.library_version, "2.3.1")
|
||||
assert exporter.library_version in SpecifierSet(">= 2.3.1")
|
||||
|
||||
def test_units(self):
|
||||
for unit in Unit:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue