enroll/tests/test_version_extra.py
Miguel Jacq bf735c8328
Some checks failed
CI / test (push) Failing after 1s
Lint / test (push) Failing after 1s
More coverage
2026-05-31 17:15:22 +10:00

12 lines
363 B
Python

from __future__ import annotations
# The version module is hard to test fully because it uses importlib.metadata
# which is difficult to mock. We'll test what we can.
def test_get_enroll_version_returns_string():
from enroll.version import get_enroll_version
result = get_enroll_version()
assert isinstance(result, str)
assert len(result) > 0