lint: fix line length

This commit is contained in:
Guilhem Saurel
2021-08-27 18:04:34 +02:00
parent c03ae0a571
commit eb3c795368
3 changed files with 6 additions and 4 deletions

View File

@@ -51,7 +51,8 @@ def wait_available(url: str, key: str, timeout: int = 10) -> bool:
"""Wait until a service answer correctly or timeout."""
def check_json(url: str, key: str) -> bool:
"""Ensure a service at a given url answers with valid json containing a certain key."""
"""Ensure a service at a given url answers
with valid json containing a certain key."""
try:
data = httpx.get(url).json()
return key in data