Fix ingress bug with Firefox (#23121)

* Fix ingress bug with Firefox

* Fix mock

* Fix tests

* Fix test lint
This commit is contained in:
Pascal Vizeli authored and Pascal Vizeli committed 2019-04-16 08:44:30 +00:00
1 parent 984af45bb2
commit 0e7a2f163c
4 files changed
+81 -10

No files matched your search

+5 -1
View File
@@ -82,6 +82,10 @@ class AiohttpClientMocker:
"""Register a mock options request."""
self.request('options', *args, **kwargs)
def patch(self, *args, **kwargs):
"""Register a mock patch request."""
self.request('patch', *args, **kwargs)
@property
def call_count(self):
"""Return the number of requests made."""
@@ -102,7 +106,7 @@ class AiohttpClientMocker:
async def match_request(self, method, url, *, data=None, auth=None,
params=None, headers=None, allow_redirects=None,
timeout=None, json=None, cookies=None):
timeout=None, json=None, cookies=None, **kwargs):
"""Match a request against pre-registered requests."""
data = data or json
url = URL(url)