Skip to content

Commit

Permalink
Pass query parameters as a dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo committed Oct 24, 2023
1 parent 9fa2a28 commit ee8f84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/tests/controllers/artefacts/test_artefacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_get_latest_artefacts_by_family(db_session: Session, test_client: TestCl
create_artefact(db_session, "edge", created_at=old_timestamp, version="1")
create_artefact(db_session, "proposed")

response = test_client.get("/v1/artefacts?family=snap")
response = test_client.get("/v1/artefacts", params={"family": "snap"})

assert response.status_code == 200
assert response.json() == [
Expand Down

0 comments on commit ee8f84a

Please sign in to comment.