UniFi - Improve switch tests (#27200)

* Continue rewriting tests for UniFi
This commit is contained in:
Robert Svensson authored and GitHub committed 2019-10-05 16:16:08 +02:00
1 parent a9073451f8
commit a8567a746b
2 files changed
+255 -173

No files matched your search

@@ -135,7 +135,6 @@ async def setup_unifi_integration(
async def mock_request(self, method, path, json=None):
mock_requests.append({"method": method, "path": path, "json": json})
print(mock_requests, mock_client_responses, mock_device_responses)
if path == "s/{site}/stat/sta" and mock_client_responses:
return mock_client_responses.popleft()
if path == "s/{site}/stat/device" and mock_device_responses: