Skip to content

Commit e32571e

Browse files
committed
Make test_top_level_import version
1 parent 8ed99bd commit e32571e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/test_imports.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ class TestPackageImports:
1313
def test_top_level_import(self):
1414
import amorphgen
1515
assert hasattr(amorphgen, "__version__")
16-
assert amorphgen.__version__ == "1.0.0"
16+
# Accept any 1.0.0 family version (1.0.0, 1.0.0rc2, 1.0.0.post1, ...)
17+
# so the test doesn't break on every release-candidate bump.
18+
assert isinstance(amorphgen.__version__, str)
19+
assert amorphgen.__version__.startswith("1.0.0")
1720

1821
def test_pipeline_import(self):
1922
from amorphgen import MeltQuenchPipeline

0 commit comments

Comments
 (0)