Skip to content

Commit

Permalink
forgot to include the integration test update
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriousHorncat committed Dec 6, 2023
1 parent 853cb51 commit af466ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/tests/integration/test_analysis_routers.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def test_get_analyses(client, mock_access_token, mock_repositories):
"""Testing that the correct number of analyses were returned and in the right order"""
mock_repositories['analysis'].collection.find.return_value = read_database_fixture("analyses.json")

response = client.get("/analysis/", headers={"Authorization": "Bearer " + mock_access_token})
response = client.get("/analysis", headers={"Authorization": "Bearer " + mock_access_token})

assert response.status_code == 200
assert len(response.json()) == 6
Expand Down Expand Up @@ -64,7 +64,7 @@ def test_import_analysis_with_phenotips_json(
analysis_import_json_filepath = fixture_filepath('phenotips-import.json')
with open(analysis_import_json_filepath, "rb") as phenotips_file:
response = client.post(
"/analysis/",
"/analysis",
headers={"Authorization": "Bearer " + mock_access_token},
files={"phenotips_file": ("phenotips-import.json", phenotips_file.read())}
)
Expand Down

0 comments on commit af466ea

Please sign in to comment.