diff --git a/test/integration.py b/test/integration.py index eefc035..6b550f6 100644 --- a/test/integration.py +++ b/test/integration.py @@ -12,7 +12,7 @@ def get_zim_article(zimfile, path): def test_is_file(): - """ Ensure ZIM file exists""" + """Ensure ZIM file exists""" assert os.path.isfile("/output/isago.zim") @@ -26,7 +26,7 @@ def test_zim_main_page(): def test_user_agent(): - """ Test that mobile user agent was used in WARC request records with custom Zimit and email suffix""" + """Test that mobile user agent was used in WARC request records with custom Zimit and email suffix""" found = False for warc in glob.glob("/output/.tmp*/collections/crawl-*/archive/*.warc.gz"): @@ -50,7 +50,7 @@ def test_stats_output(): "numCrawled": 5, "workersRunning": 0, "total": 5, - "limit": {"max": 0, "hit": False} + "limit": {"max": 0, "hit": False}, } with open("/output/warc2zim.json") as fh: assert json.loads(fh.read()) == { @@ -61,5 +61,5 @@ def test_stats_output(): assert json.loads(fh.read()) == { "done": 7, "total": 7, - "limit": {"max": 0, "hit": False} + "limit": {"max": 0, "hit": False}, } diff --git a/zimit.py b/zimit.py index f0b360e..c8af6a3 100755 --- a/zimit.py +++ b/zimit.py @@ -8,7 +8,6 @@ This script validates arguments with warc2zim, checks permissions and then calls the Node based driver """ -import re import itertools from argparse import ArgumentParser import tempfile