summaryrefslogtreecommitdiff
path: root/crocoite/test_warc.py
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite/test_warc.py')
-rw-r--r--crocoite/test_warc.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/crocoite/test_warc.py b/crocoite/test_warc.py
index 954e8c8..478892a 100644
--- a/crocoite/test_warc.py
+++ b/crocoite/test_warc.py
@@ -84,8 +84,9 @@ def event ():
requestResponsePair (),
)
+@pytest.mark.asyncio
@given (st.lists (event ()))
-def test_push (golden):
+async def test_push (golden):
def checkWarcinfoId (headers):
if lastWarcinfoRecordid is not None:
assert headers['WARC-Warcinfo-ID'] == lastWarcinfoRecordid
@@ -97,7 +98,7 @@ def test_push (golden):
with open('/tmp/test.warc.gz', 'w+b') as fd:
with WarcHandler (fd, logger) as handler:
for g in golden:
- handler.push (g)
+ await handler.push (g)
fd.seek (0)
it = iter (ArchiveIterator (fd))