diff options
| author | Mohammad Sajid Anwar <Mohammad.Anwar@yahoo.com> | 2024-09-08 11:04:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-08 11:04:11 +0100 |
| commit | 7cc7c2044811d44820194e9b8e4ef92a0a80a497 (patch) | |
| tree | fce71a8f9cf696b32d0d584eeb6a97f704d8c386 /challenge-285/ppentchev/python/tests/unit/test_metadata.py | |
| parent | f914ae6a3f7212cd2083677a8134d9009960a5b0 (diff) | |
| parent | 50445dbe3f83551244d858e5d2a0a0e1a90adf75 (diff) | |
| download | perlweeklychallenge-club-7cc7c2044811d44820194e9b8e4ef92a0a80a497.tar.gz perlweeklychallenge-club-7cc7c2044811d44820194e9b8e4ef92a0a80a497.tar.bz2 perlweeklychallenge-club-7cc7c2044811d44820194e9b8e4ef92a0a80a497.zip | |
Merge pull request #10788 from ppentchev/pp-285-python
Add Peter Pentchev's Python solution to 285.
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") |
