Skip to content

Commit c241c9c

Browse files
Alison WuAlison Wu
authored andcommitted
Add test_version.py
1 parent 27b5737 commit c241c9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_version.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""Unit tests for __version__.py
2+
"""
3+
4+
import diffpy.utils
5+
6+
7+
def test_package_version():
8+
"""Ensure the package version is defined and not set to the initial placeholder."""
9+
assert hasattr(diffpy.utils, "__version__")
10+
assert diffpy.utils.__version__ != "0.0.0"

0 commit comments

Comments
 (0)