1
mirror of https://github.com/home-assistant/core synced 2024-09-09 12:51:22 +02:00

Update aiohttp.py

This commit is contained in:
Paulus Schoutsen 2016-10-27 21:45:35 -07:00 committed by GitHub
parent 3324995e70
commit 726d950522

View File

@ -15,6 +15,7 @@ class AiohttpClientMocker:
self.mock_calls = []
def request(self, method, url, *,
auth=None,
status=200,
text=None,
content=None,
@ -56,7 +57,7 @@ class AiohttpClientMocker:
return len(self.mock_calls)
@asyncio.coroutine
def match_request(self, method, url):
def match_request(self, method, url, *, auth=None):
"""Match a request against pre-registered requests."""
for response in self._mocks:
if response.match_request(method, url):