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

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_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

otaku_info_web.test.misc.TestMappings module

class otaku_info_web.test.misc.TestMappings.TestMappings(methodName='runTest')

Bases: unittest.case.TestCase

Class that tests enum mappings

test_completeness()

Tests that mappings include all possible enum types :return: None

otaku_info_web.test.misc.TestServer module

class otaku_info_web.test.misc.TestServer.TestServer(methodName='runTest')

Bases: otaku_info_web.test.TestFramework._TestFramework

Class that tests starting the server

test_starting_server()

Tests starting the server :return: None

Module contents