Skip to content

Commit d57d9fd

Browse files
mgautierfrrgaudin
authored andcommitted
fixup! Add wrapper on creator.addClone.
1 parent e6afe75 commit d57d9fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_libzim_creator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def test_creator_redirection(fpath, lipsum_item):
467467
sugg_bonjour.getResults(0, sugg_hello.getEstimatedMatches())
468468
)
469469

470-
def test_creator_clone(fpath, lipsum_item):
470+
def test_creator_alias(fpath, lipsum_item):
471471
# ensure we can't add if not started
472472
c = Creator(fpath)
473473
with pytest.raises(RuntimeError, match="not started"):
@@ -478,7 +478,7 @@ def test_creator_clone(fpath, lipsum_item):
478478
c.add_item(lipsum_item)
479479
c.add_alias("home", "hello", HOME_PATH, {Hint.FRONT_ARTICLE: True})
480480
with pytest.raises(RuntimeError, match="doesn't exist"):
481-
c.add_alias("accueil", "bonjour", HOME_PATH+"_no_existitant", {Hint.FRONT_ARTICLE: True})
481+
c.add_alias("accueil", "bonjour", HOME_PATH+"_non_existent", {Hint.FRONT_ARTICLE: True})
482482

483483
zim = Archive(fpath)
484484
assert zim.entry_count == 2

0 commit comments

Comments
 (0)