Skip to content

Commit a81d73c

Browse files
davidldayLee-W
authored andcommitted
fix(test): pass correct type to get_package_version tests
1 parent d36d170 commit a81d73c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_version_providers.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
import json
23

34
import os
45
from pathlib import Path
@@ -371,6 +372,6 @@ def test_npm2_exceptions(
371372
provider = get_provider(config)
372373
assert isinstance(provider, Npm2Provider)
373374
with pytest.raises(ValueError):
374-
provider.get_package_version(NPM_NO_VERSION)
375+
provider.get_package_version(json.loads(NPM_NO_VERSION))
375376
with pytest.raises(ValueError):
376-
provider.get_package_version(NPM_MULTIPLE_VERSIONS)
377+
provider.get_package_version(json.loads(NPM_MULTIPLE_VERSIONS))

0 commit comments

Comments
 (0)