Skip to content

Commit dac82a9

Browse files
committed
Fix failing test
1 parent 77c943d commit dac82a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_libzim_creator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ def test_creator_additem(fpath, lipsum_item):
373373
c.add_item(None) # pyright: ignore [reportCallIssue, reportArgumentType]
374374
with pytest.raises(RuntimeError):
375375
c.add_item("hello") # pyright: ignore [reportCallIssue, reportArgumentType]
376-
with pytest.raises(TypeError, match="takes exactly 1 positional argument"):
376+
with pytest.raises(
377+
TypeError,
378+
match=r"add\_item\(\) got an unexpected keyword argument 'mimetype'",
379+
):
377380
c.add_item(mimetype="text/html") # pyright: ignore [reportCallIssue]
378381

379382

0 commit comments

Comments
 (0)