Skip to content

Commit

Permalink
pytest msg is deprecated, use default value as reason
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Oct 28, 2024
1 parent 69f6255 commit 820c017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_api_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def test_sparc_api(monkeypatch):

def test_sparc_params():
if "SPARC_DOC_PATH" not in os.environ:
pytest.skip(msg="No $SPARC_DOC_PATH set. Skip")
pytest.skip("No $SPARC_DOC_PATH set. Skip")

from sparc.utils import locate_api

# Use the default api with SPARC_DOC_PATH
api = locate_api()
if api.sparc_version is None:
pytest.skip(msg="SPARC version not known. skip")
pytest.skip("SPARC version not known. skip")

if version.parse(api.sparc_version) > version.parse("2023.09.01"):
assert "NPT_SCALE_VECS" in api.parameters
Expand Down

0 comments on commit 820c017

Please sign in to comment.