Skip to content

Commit

Permalink
Clean up the test scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Dec 29, 2023
1 parent 7344020 commit 6054230
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,15 @@ class TestMain:
)
),
# Malformed MIME type
(b"...", (b"javascript charset=UTF-8",), True, False, None, None, b"text/plain"),
(b"...", (b"a/b/c",), True, False, None, None, b"text/plain"),
(b"...", (b"a/[",), True, False, None, None, b"text/plain"),
(b"...", (b"[/a",), True, False, None, None, b"text/plain"),
*(
(b"...", (mime_type,), True, False, None, None, b"text/plain")
for mime_type in (
b"javascript charset=UTF-8",
b"a/b/c",
b"a/[",
b"[/a",
)
),
],
)
def test_extract_mime(
Expand Down

0 comments on commit 6054230

Please sign in to comment.