From f73e625d6b227c9e5cdadef739ec6bd7c0b596f4 Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Mon, 15 Jan 2018 20:17:22 +0000 Subject: [PATCH] Chec writer._fname in unit test For some reason this test previously failed in github. Maybe it has to do with the temporary files I need to create there... in any case, I changed what we check and evaluate the ``write._fname`` for the correct filename format. --- tests/test_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_writer.py b/tests/test_writer.py index 9728ec9..61fe108 100644 --- a/tests/test_writer.py +++ b/tests/test_writer.py @@ -181,4 +181,4 @@ def test_warc_writer_filename(tmpdir): wwriter.write_records(recorded_url) warcs = [fn for fn in os.listdir(dirname)] assert warcs - assert re.search('\d{17}_foo_\d{14}_00000.warc.open', warcs[0]) + assert re.search('\d{17}_foo_\d{14}_00000.warc.open', wwriter._fpath)