Skip to content

Commit c6b9832

Browse files
committed
fix path bugs
Signed-off-by: 404-geek <[email protected]>
1 parent 601201b commit c6b9832

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scanpipe/tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2705,7 +2705,7 @@ def test_scanpipe_parse_score_date(self):
27052705

27062706
def test_scanpipe_create_scorecard_check_from_data(self):
27072707
"""Test create_from_data successfully creates a ScorecardCheck instance."""
2708-
with open(self.data_path / "scorecode/scorecard_response.json") as file:
2708+
with open(self.data / "scorecode/scorecard_response.json") as file:
27092709
scorecard_data = json.load(file)
27102710

27112711
package = DiscoveredPackage.create_from_data(self.project1, package_data1)

scanpipe/tests/test_pipelines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ def test_scanpipe_get_scorecard_info_packages_integration(self, mock_is_availabl
12511251
mock_is_available.return_value = False
12521252
exitcode, out = pipeline.execute()
12531253
self.assertEqual(1, exitcode, msg=out)
1254-
self.assertIn("scorecode service is not available.", out)
1254+
self.assertIn("ScoreCode service is not available.", out)
12551255

12561256
run = project1.add_pipeline(pipeline_name)
12571257
pipeline = run.make_pipeline_instance()

0 commit comments

Comments
 (0)