diff options
| author | Conor Hoekstra <codereport@outlook.com> | 2024-09-09 16:34:38 -0400 |
|---|---|---|
| committer | Conor Hoekstra <codereport@outlook.com> | 2024-09-09 16:34:38 -0400 |
| commit | 2f3cf4f7cfa808d89e183b77f61dac80db4ab751 (patch) | |
| tree | 9dcefb9d7860406bce98f0666cd99d7b608dd758 /challenge-285/ppentchev/python/tests/unit/test_metadata.py | |
| parent | 156e3186ef5b8f929e3589f8469463132e0fa996 (diff) | |
| parent | 148ad068f27ef5bbdcac38b14685b2273b0d02ec (diff) | |
| download | perlweeklychallenge-club-2f3cf4f7cfa808d89e183b77f61dac80db4ab751.tar.gz perlweeklychallenge-club-2f3cf4f7cfa808d89e183b77f61dac80db4ab751.tar.bz2 perlweeklychallenge-club-2f3cf4f7cfa808d89e183b77f61dac80db4ab751.zip | |
Merge branch 'master' of https://github.com/manwar/perlweeklychallenge-club
Diffstat (limited to 'challenge-285/ppentchev/python/tests/unit/test_metadata.py')
| -rw-r--r-- | challenge-285/ppentchev/python/tests/unit/test_metadata.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/challenge-285/ppentchev/python/tests/unit/test_metadata.py b/challenge-285/ppentchev/python/tests/unit/test_metadata.py new file mode 100644 index 0000000000..e957790fba --- /dev/null +++ b/challenge-285/ppentchev/python/tests/unit/test_metadata.py @@ -0,0 +1,21 @@ +# SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net> +# SPDX-License-Identifier: BSD-2-Clause +"""Basic test for file importing.""" + +from __future__ import annotations + +import typing + +from packaging import version as pkg_version + +from perl_weekly_285 import defs + + +if typing.TYPE_CHECKING: + from typing import Final + + +def test_version() -> None: + """Make sure the `VERSION` variable has a sane value.""" + version: Final = pkg_version.Version(defs.VERSION) + assert version > pkg_version.Version("0") |
