Revert temporary fix in tests now that UA has been fixed

This commit is contained in:
benoit74 2023-11-02 21:05:23 +01:00
parent 31a652c8dd
commit 9e9140690d
No known key found for this signature in database
GPG Key ID: B89606434FC7B530

View File

@ -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