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