File: test_version.py

package info (click to toggle)
python-ansible-compat 25.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 656 kB
  • sloc: python: 2,522; sh: 26; makefile: 24
file content (13 lines) | stat: -rw-r--r-- 526 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
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