Skip to content

Commit

Permalink
Add a prefix to the test route used for testing the params
Browse files Browse the repository at this point in the history
  • Loading branch information
stvoutsin committed Oct 22, 2024
1 parent d049b1b commit 3a9157c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async def app(
# Otherwise, the web application will use the one created in its
# lifespan context manager.
uws.override_arq_queue(arq_queue)
main.app.include_router(get_params_router)
main.app.include_router(get_params_router, prefix="/test")
yield main.app


Expand Down
4 changes: 3 additions & 1 deletion tests/handlers/sync_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ async def test_bad_parameters(
@pytest.mark.asyncio
async def test_get_dependency_multiple_params(client: AsyncClient) -> None:
response = await client.get(
"/params?id=image1&id=image2&pos=" "RANGE 10 20 30 40&circle=10 20 5"
"/test/params?id=image1&id=image2&pos="
"RANGE 10 20 30 40&circle=10 "
"20 5"
)
assert response.status_code == 200
assert response.json() == {
Expand Down

0 comments on commit 3a9157c

Please sign in to comment.