Permalink
Browse files

tests: Accept HTTP "not modified" as status

It seems like QtWebEngine sends some caching headers QtWebKit didn't?
  • Loading branch information...
The-Compiler committed Aug 18, 2016
1 parent 5e8254d commit 0b9aec873f1c1196ea87723a0c0511fac7bef74c
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/end2end/fixtures/webserver.py
@@ -73,9 +73,10 @@ def _check_status(self):
'/status/404': [http.client.NOT_FOUND],
'/cookies/set': [http.client.FOUND],
}
+ default_statuses = [http.client.OK, http.client.NOT_MODIFIED]
sanitized = QUrl('http://localhost' + self.path).path() # Remove ?foo
- expected_statuses = path_to_statuses.get(sanitized, [http.client.OK])
+ expected_statuses = path_to_statuses.get(sanitized, default_statuses)
assert self.status in expected_statuses
def __eq__(self, other):

0 comments on commit 0b9aec8

Please sign in to comment.