mirror of
https://github.com/openzim/zimit.git
synced 2025-09-21 19:03:19 -04:00
Revert temporary fix in tests now that UA has been fixed
This commit is contained in:
parent
31a652c8dd
commit
9e9140690d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user