Skip to content

Commit 4842bc7

Browse files
committed
fixed black formatting
1 parent 047be87 commit 4842bc7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests/test_libzim_creator.py

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

470+
470471
def test_creator_alias(fpath, lipsum_item):
471472
# ensure we can't add if not started
472473
c = Creator(fpath)
@@ -478,15 +479,21 @@ def test_creator_alias(fpath, lipsum_item):
478479
c.add_item(lipsum_item)
479480
c.add_alias("home", "hello", HOME_PATH, {Hint.FRONT_ARTICLE: True})
480481
with pytest.raises(RuntimeError, match="doesn't exist"):
481-
c.add_alias("accueil", "bonjour", HOME_PATH+"_non_existent", {Hint.FRONT_ARTICLE: True})
482+
c.add_alias(
483+
"accueil",
484+
"bonjour",
485+
HOME_PATH + "_non_existent",
486+
{Hint.FRONT_ARTICLE: True},
487+
)
482488

483489
zim = Archive(fpath)
484490
assert zim.entry_count == 2
485491
assert zim.has_entry_by_path("home") is True
486492
assert zim.has_entry_by_path("accueil") is False
487493
assert not zim.get_entry_by_path("home").is_redirect
488494
assert (
489-
zim.get_entry_by_path("home").get_item().content == zim.get_entry_by_path(HOME_PATH).get_item().content
495+
zim.get_entry_by_path("home").get_item().content
496+
== zim.get_entry_by_path(HOME_PATH).get_item().content
490497
)
491498

492499

0 commit comments

Comments
 (0)