From 243474dc9a447e72e7bdb11b5bee5f822f9b1483 Mon Sep 17 00:00:00 2001 From: Georg-Stahn Date: Thu, 30 Nov 2023 01:34:37 +0100 Subject: [PATCH] adding typings to functions :') not sure with request type ... --- pkgs/clan-cli/tests/test_db_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/clan-cli/tests/test_db_api.py b/pkgs/clan-cli/tests/test_db_api.py index 589d52b..581ef7c 100644 --- a/pkgs/clan-cli/tests/test_db_api.py +++ b/pkgs/clan-cli/tests/test_db_api.py @@ -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(