Skip to content

Commit

Permalink
Revert temporary fix in tests now that UA has been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Nov 2, 2023
1 parent 31a652c commit 9e91406
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]")
found = True
Expand Down

0 comments on commit 9e91406

Please sign in to comment.