lint: fix pydocstyle
This commit is contained in:
parent
6aaac9149d
commit
2b7b79971d
3 changed files with 6 additions and 3 deletions
|
@ -51,8 +51,9 @@ 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 including a certain key.
|
||||
"""
|
||||
try:
|
||||
data = httpx.get(url).json()
|
||||
return key in data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue