otaku_info.test.misc package¶
Submodules¶
otaku_info.test.misc.TestApiCalls module¶
- class otaku_info.test.misc.TestApiCalls.TestConfig(methodName='runTest')¶
Bases:
otaku_info.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
- test_unauthorized_call()¶
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.test.misc.TestConfig module¶
otaku_info.test.misc.TestErrorHandling module¶
- class otaku_info.test.misc.TestErrorHandling.TestErrorHandling(methodName='runTest')¶
Bases:
otaku_info.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