From 23e67a23a7b57fa5cb6fc92bd0843c3707d56ef9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 3 Jun 2024 15:38:37 +0200 Subject: Adding upstream version 24.6.0. Signed-off-by: Daniel Baumann --- test/test_version.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 test/test_version.py (limited to 'test/test_version.py') 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 -- cgit v1.2.3