From 7cec3d8b283382524fa083f73f11b0e0990faa02 Mon Sep 17 00:00:00 2001 From: Tessa Walsh Date: Wed, 15 May 2024 11:20:05 -0400 Subject: [PATCH] One more go --- test/test_capture_http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_capture_http.py b/test/test_capture_http.py index ef1b5a22..6348cb5d 100644 --- a/test/test_capture_http.py +++ b/test/test_capture_http.py @@ -92,7 +92,7 @@ def test_post_cache_to_file(self): assert response.rec_type == 'response' assert response.rec_headers['WARC-Target-URI'] == url assert response.rec_headers['WARC-IP-Address'] == '127.0.0.1' - assert res.json()["json"] == json.loads(response.content_stream().read().decode('utf-8')) + assert request_data == json.loads(response.content_stream().read().decode('utf-8'))["json"] request = next(ai) assert request.rec_type == 'request'