Skip to content

Commit

Permalink
adapt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Feb 7, 2024
1 parent e8ddc0a commit 0027cd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/integration_tests/test_full_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def test_full_cycle(auth_harvester, operandi, service_broker, bytes_default_work
# the data is transferred from HPC to Operandi Server
sleep(10)
response = operandi.get(
url=f"/workflow/{workflow_id}/{workflow_job_id}",
headers={"accept": "application/vnd.zip"},
url=f"/workflow/{workflow_id}/{workflow_job_id}/log",
# headers={"accept": "application/vnd.zip"},
auth=auth_harvester
)
zip_local_path = join(environ.get("OPERANDI_SERVER_BASE_DIR"), f"{workflow_job_id}.zip")
Expand Down
4 changes: 2 additions & 2 deletions tests/tests_server/test_endpoint_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_get_workflow_script(operandi, auth, bytes_template_workflow):
# Get the same workflow script
response = operandi.get(
f"/workflow/{workflow_id}",
headers={"accept": "text/vnd.ocrd.workflow"},
# headers={"accept": "text/vnd.ocrd.workflow"},
auth=auth
)
assert_response_status_code(response.status_code, expected_floor=2)
Expand All @@ -115,7 +115,7 @@ def test_get_workflow_non_existing(operandi, auth):
non_workflow_id = "non_existing_workflow_id"
response = operandi.get(
f"/workflow/{non_workflow_id}",
headers={"accept": "text/vnd.ocrd.workflow"},
# headers={"accept": "text/vnd.ocrd.workflow"},
auth=auth
)
assert_response_status_code(response.status_code, expected_floor=4)
Expand Down
4 changes: 2 additions & 2 deletions tests/tests_server/test_endpoint_workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def test_get_workspace(operandi, auth, bytes_ws_different_mets):
workspace_id = response.json()['resource_id']
response = operandi.get(
f"/workspace/{workspace_id}",
headers={"accept": "application/vnd.ocrd+zip"},
# headers={"accept": "application/vnd.ocrd+zip"},
auth=auth
)
assert_response_status_code(response.status_code, expected_floor=2)
Expand All @@ -158,7 +158,7 @@ def test_get_workspace_non_existing(operandi, auth):
non_workspace_id = "non_existing_workspace_id"
response = operandi.get(
f"/workspace/{non_workspace_id}",
headers={"accept": "application/vnd.ocrd+zip"},
# headers={"accept": "application/vnd.ocrd+zip"},
auth=auth
)
assert_response_status_code(response.status_code, expected_floor=4)

0 comments on commit 0027cd9

Please sign in to comment.