From b2ae9749e7be88efbb2c712e6d1d80cc24f396f7 Mon Sep 17 00:00:00 2001 From: Stuart Campbell Date: Fri, 25 Oct 2024 17:12:27 -0400 Subject: [PATCH] Code Reformatting --- src/nsls2api/tests/api/test_beamline_api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/nsls2api/tests/api/test_beamline_api.py b/src/nsls2api/tests/api/test_beamline_api.py index 262df41..d663dfa 100644 --- a/src/nsls2api/tests/api/test_beamline_api.py +++ b/src/nsls2api/tests/api/test_beamline_api.py @@ -63,6 +63,7 @@ async def test_get_beamline_directory_skeleton(): response_json = response.json() assert response.status_code == 200 + @pytest.mark.anyio async def test_get_nonexistent_beamline(): async with AsyncClient( @@ -72,6 +73,7 @@ async def test_get_nonexistent_beamline(): assert response.status_code == 404 assert response.json() == {"detail": "Beamline 'does-not-exist' does not exist"} + @pytest.mark.anyio async def test_get_service_accounts_for_nonexistent_beamline(): async with AsyncClient( @@ -81,10 +83,11 @@ async def test_get_service_accounts_for_nonexistent_beamline(): assert response.status_code == 404 assert response.json() == {"detail": "Beamline 'does-not-exist' does not exist"} + @pytest.mark.anyio async def test_get_directory_skeleton_for_nonexistent_beamline(): async with AsyncClient( transport=ASGITransport(app=app), base_url="http://test" ) as ac: response = await ac.get("/v1/beamline/does-not-exist/directory-skeleton") - assert response.status_code == 404 \ No newline at end of file + assert response.status_code == 404