Skip to content

Commit

Permalink
update api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dontseyit committed Nov 11, 2024
1 parent d9920bb commit fbc167e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ async def test_get_work_package_unauthorized(client: AsyncTestClient):
assert response.status_code == status.HTTP_403_FORBIDDEN


@pytest.mark.httpx_mock(
assert_all_responses_were_requested=False, can_send_already_matched_responses=True
)
async def test_create_work_order_token(
client: AsyncTestClient,
auth_headers: dict[str, str],
Expand Down Expand Up @@ -218,8 +221,6 @@ async def test_create_work_order_token(
}

# mock the access check for the test dataset to revoke access

httpx_mock.reset(assert_all_responses_were_requested=True)
httpx_mock.add_response(
method="GET",
url="http://access/users/john-doe@ghga.de/datasets/some-dataset-id",
Expand Down

0 comments on commit fbc167e

Please sign in to comment.