bundesliga_tippspiel.test.db.user_generated package

Submodules

bundesliga_tippspiel.test.db.user_generated.test_Bet module

class bundesliga_tippspiel.test.db.user_generated.test_Bet.TestBet(methodName='runTest')

Bases: bundesliga_tippspiel.test.db.ModelTestFramework._ModelTestFramework

Tests the Bet SQL model

setUp()

Sets up the data needed by the tests :return: None

test_cascades()

Tests if cascade deletes work correctly :return: None

test_evaluating_bet_result()

Tests evaluating the results of a bet :return: None

test_evaluating_unfinished_games()

Tests that evaluating unfinished games behaves correctly :return: None

test_json_representation()

Tests the JSON representation of the model :return: None

test_missing_column_data()

Tests that missing column data is handled correctly :return: None

test_retrieving_from_db()

Tests retrieving model objects from the database :return: None

test_string_representation()

Tests the str and repr methods of the model :return: None

test_uniqueness()

Tests that unique attributes are correctly checked :return: None

bundesliga_tippspiel.test.db.user_generated.test_ChatMessage module

class bundesliga_tippspiel.test.db.user_generated.test_ChatMessage.TestChatMessage(methodName='runTest')

Bases: bundesliga_tippspiel.test.db.ModelTestFramework._ModelTestFramework

Tests the ChatMessage SQL model

setUp()

Sets up the data needed by the tests :return: None

test_json_representation()

Tests the JSON representation of the model :return: None

test_missing_column_data()

Tests that missing column data is handled correctly :return: None

test_retrieving_from_db()

Tests retrieving model objects from the database :return: None

test_string_representation()

Tests the str and repr methods of the model :return: None

test_using_chat()

Test typical interactions with the chat systems :return: None

bundesliga_tippspiel.test.db.user_generated.test_SeasonWinner module

class bundesliga_tippspiel.test.db.user_generated.test_SeasonWinner.TestSeasonWinner(methodName='runTest')

Bases: bundesliga_tippspiel.test.db.ModelTestFramework._ModelTestFramework

Tests the SeasonWinner SQL model

setUp()

Sets up the data needed by the tests :return: None

test_cascades()

Tests if cascade deletes work correctly :return: None

test_json_representation()

Tests the JSON representation of the model :return: None

test_missing_column_data()

Tests that missing column data is handled correctly :return: None

test_season_string()

Tests the season string :return: None

test_string_representation()

Tests the str and repr methods of the model :return: None

test_uniqueness()

Tests that unique attributes are correctly checked :return: None

Module contents