From 9e9140690d4eed40c178beb5e5ce55d3b1589e38 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Thu, 2 Nov 2023 21:05:23 +0100 Subject: [PATCH] Revert temporary fix in tests now that UA has been fixed --- test/integration.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/test/integration.py b/test/integration.py index 3f8a866..1782b34 100644 --- a/test/integration.py +++ b/test/integration.py @@ -35,10 +35,7 @@ def test_user_agent(): if record.rec_type == "request": print(record.http_headers) ua = record.http_headers.get_header("User-Agent") - # remove 'and ua != "undefined"' once - # https://github.com/webrecorder/browsertrix-crawler/pull/420 is - # released / used by us - if ua and ua != "undefined": + if ua: assert "Mozilla" in ua assert ua.endswith(" +Zimit test@example.com") found = True