Skip to content

Commit

Permalink
fix(test): pass correct type to get_package_version tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlday authored and Lee-W committed Aug 26, 2023
1 parent d36d170 commit a81d73c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_version_providers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations
import json

import os
from pathlib import Path
Expand Down Expand Up @@ -371,6 +372,6 @@ def test_npm2_exceptions(
provider = get_provider(config)
assert isinstance(provider, Npm2Provider)
with pytest.raises(ValueError):
provider.get_package_version(NPM_NO_VERSION)
provider.get_package_version(json.loads(NPM_NO_VERSION))
with pytest.raises(ValueError):
provider.get_package_version(NPM_MULTIPLE_VERSIONS)
provider.get_package_version(json.loads(NPM_MULTIPLE_VERSIONS))

0 comments on commit a81d73c

Please sign in to comment.