generated from Luis/nextjs-python-web-template
adding typings to functions :') not sure with request type ...
This commit is contained in:
@@ -6,7 +6,7 @@ default_entity_did_url = "entity_did=did%3Asov%3Atest%3A1234"
|
||||
default_entity_did = "did:sov:test:1234"
|
||||
|
||||
|
||||
def assert_extra_info(infos, request_body, response) -> None:
|
||||
def assert_extra_info(infos: list(), request_body: dict(), response: dict()) -> None:
|
||||
for info in infos:
|
||||
assert info in response.keys()
|
||||
# TODO maybe check the content of the extra info ...
|
||||
@@ -15,7 +15,7 @@ def assert_extra_info(infos, request_body, response) -> None:
|
||||
|
||||
|
||||
def make_test_post_and_get(
|
||||
api, request_body, paramter, get_request=default_entity_did_url, apiversion="v1"
|
||||
api: TestClient, request_body: dict(), paramter: str, get_request=default_entity_did_url: str, apiversion="v1": str
|
||||
) -> None:
|
||||
# test post
|
||||
response = api.post(
|
||||
|
||||
Reference in New Issue
Block a user