mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 03:15:40 +00:00
lint: fix pydocstyle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user