fix pydocstyle

This commit is contained in:
Guilhem Saurel
2023-03-08 17:49:17 +01:00
parent 4683905f15
commit c04dec629b
2 changed files with 1 additions and 6 deletions

View File

@@ -51,9 +51,7 @@ 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 including a certain key.
"""
"""Ensure a service answers with valid json including a certain key."""
try:
data = httpx.get(url).json()
return key in data