Skip to content

Commit

Permalink
Follow API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Oct 19, 2023
1 parent e4d104f commit 879c6a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/routers/test_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,15 +595,15 @@ def test_set_job_status_with_invalid_job_id(normal_user_client: TestClient):

def test_insert_and_reschedule(normal_user_client: TestClient):
job_definitions = [TEST_JDL]
r = normal_user_client.post("/jobs/", json=job_definitions)
r = normal_user_client.post("/api/jobs/", json=job_definitions)
assert r.status_code == 200, r.json()
assert len(r.json()) == len(job_definitions)

submitted_job_ids = sorted([job_dict["JobID"] for job_dict in r.json()])

# Test /jobs/reschedule
r = normal_user_client.post(
"/jobs/reschedule",
"/api/jobs/reschedule",
params={"job_ids": submitted_job_ids},
)
assert r.status_code == 200, r.json()

0 comments on commit 879c6a1

Please sign in to comment.