From 2dc44380f14ced474be0bd23809572e8cb210f01 Mon Sep 17 00:00:00 2001 From: juga Date: Wed, 21 Oct 2020 13:37:11 +0000 Subject: [PATCH] Test the package version --- tests/test_pep.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/test_pep.py diff --git a/tests/test_pep.py b/tests/test_pep.py new file mode 100644 index 0000000..3e63973 --- /dev/null +++ b/tests/test_pep.py @@ -0,0 +1,11 @@ +"""Unit test for pEp package, not for subpackages or modules.""" + +from pEp import __version__ + + +def test_pep_version(): + """ Test that __version__ is not None or empty and is not 0.0.0.""" + # We could also test that match the regex, but that is already a test in + # setuptools_scm itself. + assert __version__ + assert __version__ != "0.0.0"