Skip to content

Commit

Permalink
Add type check to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lrafeei committed Nov 25, 2024
1 parent f1b6279 commit e0ea38a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/agent_unittests/test_package_version_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def version(self):
monkeypatch.setattr(pytest, "version", FakeModule.version, raising=False)

version = get_package_version("pytest")
assert version not in NULL_VERSIONS, version
assert version not in NULL_VERSIONS and isinstance(version, str), version


# This test checks to see if the version is a property of the class
Expand All @@ -181,4 +181,4 @@ def version(self):
monkeypatch.setattr(pytest, "version_tuple", (1, 2, 3), raising=False)

version = get_package_version("pytest")
assert version not in NULL_VERSIONS, version
assert version not in NULL_VERSIONS and isinstance(version, str), version

0 comments on commit e0ea38a

Please sign in to comment.