Skip to content

Commit

Permalink
Add unit test for version check
Browse files Browse the repository at this point in the history
  • Loading branch information
bobleesj committed Sep 23, 2024
1 parent b384a00 commit 6391c7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""Unit tests for __version__.py
"""

import diffpy.structure


def test_package_version():
"""Ensure the package version is defined and not set to the initial placeholder."""
assert hasattr(diffpy.structure, '__version__'), "The package version is not defined."
assert diffpy.structure.__version__ != "0.0.0"

0 comments on commit 6391c7c

Please sign in to comment.