Skip to content

Commit

Permalink
test: fix request mock
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrasser committed Feb 29, 2024
1 parent b673323 commit 19e0c99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


@pytest.fixture
def job(project: Project):
def job(cs, project: Project):
return project.find_job("J1")


Expand Down

0 comments on commit 19e0c99

Please sign in to comment.