otaku_info_web.test.misc package¶
Submodules¶
otaku_info_web.test.misc.TestApiCalls module¶
-
class
otaku_info_web.test.misc.TestApiCalls.
TestConfig
(methodName='runTest')¶ Bases:
otaku_info_web.test.TestFramework._TestFramework
Class that tests varios API calls
-
test_expired_api_key
()¶ Tests using an expired API key :return: None
-
test_non_base64_header
()¶ Tests using a header that’s not base64 encoded :return: None
-
test_random_exception
()¶ Tests that the API routes catch any Exceptions without issue :return: None
Tests and unauthorized API call :return: None
-
test_using_non_json_data
()¶ Tests sending the data as something that’s not JSON :return: None
-
otaku_info_web.test.misc.TestConfig module¶
-
class
otaku_info_web.test.misc.TestConfig.
TestConfig
(methodName='runTest')¶ Bases:
otaku_info_web.test.TestFramework._TestFramework
Class that tests the config class
-
test_db_config
()¶ Tests the database configuration :return: None
-
test_version
()¶ Tests if the version is fetched correctly :return: None
-
otaku_info_web.test.misc.TestErrorHandling module¶
-
class
otaku_info_web.test.misc.TestErrorHandling.
TestErrorHandling
(methodName='runTest')¶ Bases:
otaku_info_web.test.TestFramework._TestFramework
Class that tests the flask error handling
-
test_404
()¶ Tests if a 404 error is handled correctly :return: None
-
test_exception
()¶ Tests if unexpected exceptions are caught correctly :return: None
-