This repository has been archived on 2026-06-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
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