summaryrefslogtreecommitdiffstats
path: root/test/test_version.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:38:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 13:38:37 +0000
commitedb762c8af1ace09545c11f1342e8fe1abdae3b8 (patch)
tree642cd160bb22cc28e6672c1baea60a49476d71b2 /test/test_version.py
parentReleasing progress-linux version 24.5.1-1~progress7.99u1. (diff)
downloadpython-ansible-compat-edb762c8af1ace09545c11f1342e8fe1abdae3b8.tar.xz
python-ansible-compat-edb762c8af1ace09545c11f1342e8fe1abdae3b8.zip
Merging upstream version 24.6.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--test/test_version.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_version.py b/test/test_version.py
new file mode 100644
index 0000000..b5d26ab
--- /dev/null
+++ b/test/test_version.py
@@ -0,0 +1,13 @@
+"""Tests for _version module."""
+
+
+def test_version_module() -> None:
+ """Tests that _version exports are present."""
+ # import kept here to allow mypy/pylint to run when module is not installed
+ # and the generated _version.py is missing.
+ # pylint: disable=no-name-in-module,no-member
+ import ansible_compat._version # type: ignore[import-not-found,unused-ignore]
+
+ assert ansible_compat._version.__version__
+ assert ansible_compat._version.__version_tuple__
+ assert ansible_compat._version.version