Skip to content

Commit

Permalink
Merge pull request #103 from bobleesj/version-test
Browse files Browse the repository at this point in the history
Add unit test for diffpy.structure.__version__
  • Loading branch information
sbillinge authored Sep 23, 2024
2 parents b384a00 + 3473749 commit f5ca6d5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
23 changes: 23 additions & 0 deletions news/version-test.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* Unit test for version.py

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
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__")
assert diffpy.structure.__version__ != "0.0.0"

0 comments on commit f5ca6d5

Please sign in to comment.