-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert temporary fix in tests now that UA has been fixed
- Loading branch information
Showing
1 changed file
with
1 addition
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|