diff --git a/tests/conftest.py b/tests/conftest.py index 888718d3..9491f0d2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -269,9 +269,9 @@ def request_callback_vis_get_project_file(request, uri, response_headers): body = json.loads(request.body) data = b"" dset = None - if body["project_uid"] == "P1" and body["path_rel"] == "J1/J1_class_00_final_particles.cs": + if body["project_uid"] == "P1" and body["path"] == "J1/J1_class_00_final_particles.cs": dset = T20S_PARTICLES - elif body["project_uid"] == "P1" and body["path_rel"] == "J1/J1_passthrough_particles_class_0.cs": + elif body["project_uid"] == "P1" and body["path"] == "J1/J1_passthrough_particles_class_0.cs": dset = T20S_PARTICLES_PASSTHROUGH else: raise RuntimeError(f"Unimplemented get_project_file pytest fixture for request body {body}") diff --git a/tests/test_job.py b/tests/test_job.py index 34697be8..c32bb4a2 100644 --- a/tests/test_job.py +++ b/tests/test_job.py @@ -9,7 +9,7 @@ @pytest.fixture -def job(project: Project): +def job(cs, project: Project): return project.find_job("J1")