Skip to content

Commit

Permalink
Fix integration test: order of mime-types change randomly
Browse files Browse the repository at this point in the history
Signed-off-by: Donny Peeters <[email protected]>
  • Loading branch information
Donnype committed Sep 5, 2024
1 parent a785b56 commit 281b4bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bytes/tests/integration/test_bytes_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,13 @@ def test_raw_mimes(bytes_api_client: BytesAPIClient) -> None:
)
)
assert len(retrieved_raws) == 1
assert retrieved_raws[0]["mime_types"] == [{"value": value} for value in mime_types]
assert {x["value"] for x in retrieved_raws[0]["mime_types"]} == set(mime_types)

retrieved_raws = bytes_api_client.get_raws(
RawDataFilter(boefje_meta_id=boefje_meta.id, normalized=False, mime_types=[MimeType(value="text/html")])
)
assert len(retrieved_raws) == 1
assert retrieved_raws[0]["mime_types"] == [{"value": value} for value in mime_types]
assert {x["value"] for x in retrieved_raws[0]["mime_types"]} == set(mime_types)

retrieved_raws = bytes_api_client.get_raws(
RawDataFilter(boefje_meta_id=boefje_meta.id, normalized=False, mime_types=[MimeType(value="bad/mime")])
Expand Down

0 comments on commit 281b4bf

Please sign in to comment.