Skip to content

Commit

Permalink
Add test checking that expected entries are present
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Jul 19, 2024
1 parent dcd6427 commit 48103f8
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests-integration/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ def test_zim_scraper():
assert "Browsertrix crawler " in scraper


def test_files_list():
"""Check that expected files are present in the ZIM at proper path"""
zim_fh = Archive("/output/isago.zim")
for expected_entry in [
"_zim_static/__wb_module_decl.js",
"_zim_static/wombat.js",
"_zim_static/wombatSetup.js",
"isago.rskg.org/",
"isago.rskg.org/a-propos",
"isago.rskg.org/conseils",
"isago.rskg.org/faq",
"isago.rskg.org/static/favicon256.png",
"isago.rskg.org/static/tarifs-isago.pdf",
"maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css",
]:
assert zim_fh.get_content(expected_entry)


def test_user_agent():
"""Test that mobile user agent was used
Expand Down

0 comments on commit 48103f8

Please sign in to comment.