Skip to content

Commit

Permalink
Merge pull request #151 from geotribu/test/replace-semver-by-packaging
Browse files Browse the repository at this point in the history
test: replace semver by packaging
  • Loading branch information
Guts authored Jan 11, 2024
2 parents f4db915 + d9a761f commit 93723e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# --------------------

pytest-cov>=4.1
semver>=2.13,<2.14
packaging>=23
4 changes: 2 additions & 2 deletions tests/unit/test_plg_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from pathlib import Path

# 3rd party
from semver import VersionInfo
from packaging.version import parse

# project
from qtribu import __about__
Expand Down Expand Up @@ -72,7 +72,7 @@ def test_metadata_types(self):

def test_version_semver(self):
"""Test if version comply with semantic versioning."""
self.assertTrue(VersionInfo.isvalid(__about__.__version__))
self.assertTrue(parse(__about__.__version__))


# ############################################################################
Expand Down

0 comments on commit 93723e3

Please sign in to comment.