Fix tests, there are in fact only 7 items to be pushed to the ZIM

7 entries are expected:
https://isago.rskg.org/
https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css
https://isago.rskg.org/static/favicon256.png
https://isago.rskg.org/conseils
https://isago.rskg.org/faq
https://isago.rskg.org/a-propos
https://isago.rskg.org/static/tarifs-isago.pdf

1 unexpected entry is not produced anymore by Browsertrix crawler:
https://dict.brave.com/edgedl/chrome/dict/en-us-10-1.bdic

This was a technical artifact
This commit is contained in:
benoit74 2024-03-07 08:40:32 +00:00
parent a9769b2871
commit 456219deb3
No known key found for this signature in database
GPG key ID: B89606434FC7B530

View file

@ -65,12 +65,12 @@ def test_stats_output():
}
with open("/output/warc2zim.json") as fh:
assert json.loads(fh.read()) == {
"written": 8,
"total": 8,
"written": 7,
"total": 7,
}
with open("/output/stats.json") as fh:
assert json.loads(fh.read()) == {
"done": 8,
"total": 8,
"done": 7,
"total": 7,
"limit": {"max": 0, "hit": False},
}