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

Fix docstring in test_util/aiohttp.py (#34024)

This commit is contained in:
Ziv 2020-04-11 16:26:54 +03:00 committed by GitHub
parent df121c2e88
commit e88af54016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,7 +295,12 @@ def mock_aiohttp_client():
class MockLongPollSideEffect:
"""Imitate a long_poll request. Once created, actual responses are queued and if queue is empty, will await until done."""
"""Imitate a long_poll request.
It should be created and used as a side effect for a GET/PUT/etc. request.
Once created, actual responses are queued with queue_response
If queue is empty, will await until done.
"""
def __init__(self):
"""Initialize the queue."""