Skip to content

Commit

Permalink
Code Reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcampbell committed Oct 25, 2024
1 parent ef24315 commit b2ae974
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nsls2api/tests/api/test_beamline_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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
assert response.status_code == 404

0 comments on commit b2ae974

Please sign in to comment.