fat_ffipd.test.misc package

Submodules

fat_ffipd.test.misc.TestApiCalls module

class fat_ffipd.test.misc.TestApiCalls.TestConfig(methodName='runTest')

Bases: fat_ffipd.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

fat_ffipd.test.misc.TestBackgroundTasks module

class fat_ffipd.test.misc.TestBackgroundTasks.TestBackgroundTasks(methodName='runTest')

Bases: fat_ffipd.test.TestFramework._TestFramework

Tests background tasks

test_im_alive()

Tests the I’m alive background task :return: None

fat_ffipd.test.misc.TestConfig module

class fat_ffipd.test.misc.TestConfig.TestConfig(methodName='runTest')

Bases: fat_ffipd.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

fat_ffipd.test.misc.TestErrorHandling module

class fat_ffipd.test.misc.TestErrorHandling.TestErrorHandling(methodName='runTest')

Bases: fat_ffipd.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

fat_ffipd.test.misc.TestServer module

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

Bases: fat_ffipd.test.TestFramework._TestFramework

Class that tests starting the server

test_starting_server()

Tests starting the server :return: None

Module contents