Skip to content

Commit 8b1f584

Browse files
committed
Update test file directory name
Signed-off-by: Jono Yang <jyang@nexb.com>
1 parent 11ee40b commit 8b1f584

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

scanpipe/tests/data/matchcode/match_to_purldb/codebase.json renamed to scanpipe/tests/data/matchcode/match_to_matchcode/codebase.json

File renamed without changes.

scanpipe/tests/data/matchcode/match_to_purldb/request_get_check_response.json renamed to scanpipe/tests/data/matchcode/match_to_matchcode/request_get_check_response.json

File renamed without changes.

scanpipe/tests/data/matchcode/match_to_purldb/request_get_results_response.json renamed to scanpipe/tests/data/matchcode/match_to_matchcode/request_get_results_response.json

File renamed without changes.

scanpipe/tests/data/matchcode/match_to_purldb/request_post_response.json renamed to scanpipe/tests/data/matchcode/match_to_matchcode/request_post_response.json

File renamed without changes.

scanpipe/tests/pipes/test_matchcode.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_scanpipe_pipes_matchcode_map_match_results(self):
188188
request_post_response_loc = (
189189
self.data_location
190190
/ "matchcode"
191-
/ "match_to_purldb"
191+
/ "match_to_matchcode"
192192
/ "request_get_results_response.json"
193193
)
194194
with open(request_post_response_loc, "r") as f:
@@ -220,7 +220,7 @@ def test_scanpipe_pipes_matchcode_create_packages_from_match_results(self):
220220
request_get_results_response_loc = (
221221
self.data_location
222222
/ "matchcode"
223-
/ "match_to_purldb"
223+
/ "match_to_matchcode"
224224
/ "request_get_results_response.json"
225225
)
226226
with open(request_get_results_response_loc, "r") as f:
@@ -240,15 +240,15 @@ def test_scanpipe_pipes_matchcode_create_packages_from_match_results(self):
240240

241241
@mock.patch("scanpipe.pipes.matchcode.request_get")
242242
@mock.patch("scanpipe.pipes.matchcode.is_available")
243-
def test_scanpipe_pipes_purldb_get_match_results(
243+
def test_scanpipe_pipes_matchcode_get_match_results(
244244
self, mock_is_available, mock_request_get
245245
):
246246
mock_is_available.return_value = True
247247

248248
request_get_check_response_loc = (
249249
self.data_location
250250
/ "matchcode"
251-
/ "match_to_purldb"
251+
/ "match_to_matchcode"
252252
/ "request_get_check_response.json"
253253
)
254254
with open(request_get_check_response_loc, "r") as f:
@@ -257,7 +257,7 @@ def test_scanpipe_pipes_purldb_get_match_results(
257257
request_get_results_response_loc = (
258258
self.data_location
259259
/ "matchcode"
260-
/ "match_to_purldb"
260+
/ "match_to_matchcode"
261261
/ "request_get_results_response.json"
262262
)
263263
with open(request_get_results_response_loc, "r") as f:

0 commit comments

Comments
 (0)