Skip to content

Commit

Permalink
Test files path rollback.
Browse files Browse the repository at this point in the history
Signed-off-by: Jay <[email protected]>
  • Loading branch information
35C4n0r committed Dec 23, 2022
1 parent 1bb8f42 commit 2e4a63f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def test_npm_packages(mock_get):

@mock.patch("fetchcode.package.get_response")
def test_pypi_packages(mock_get):
side_effect = [file_data("./data/pypi_mock_data.json")]
side_effect = [file_data("test/data/pypi_mock_data.json")]
purl = "pkg:pypi/flask"
expected_data = file_data("./data/pypi.json")
expected_data = file_data("test/data/pypi.json")
mock_get.side_effect = side_effect
packages = list(info(purl))
match_data(packages, expected_data)
Expand Down Expand Up @@ -110,11 +110,11 @@ def test_bitbucket_packages(mock_get):
@mock.patch("fetchcode.package.get_response")
def test_rubygems_packages(mock_get):
side_effect = [
file_data("data/rubygems_mock_data.json"),
file_data("data/rubygems_mock_data_versions.json")
file_data("tests/data/rubygems_mock_data.json"),
file_data("tests/data/rubygems_mock_data_versions.json")
]
purl = "pkg:rubygems/rubocop"
expected_data = file_data("data/rubygems.json")
expected_data = file_data("tests/data/rubygems.json")
mock_get.side_effect = side_effect
packages = list(info(purl))
match_data(packages, expected_data)
Expand Down

0 comments on commit 2e4a63f

Please sign in to comment.