bundesliga_tippspiel.test.db.match_data package

Submodules

bundesliga_tippspiel.test.db.match_data.test_Goal module

class bundesliga_tippspiel.test.db.match_data.test_Goal.TestGoal(methodName='runTest')

Bases: bundesliga_tippspiel.test.db.ModelTestFramework._ModelTestFramework

Tests the Goal 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_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.match_data.test_Match module

class bundesliga_tippspiel.test.db.match_data.test_Match.TestMatch(methodName='runTest')

Bases: bundesliga_tippspiel.test.db.ModelTestFramework._ModelTestFramework

Tests the Match 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_kickoff_datetime_conversion()

Tests the kickoff_datetime metod :return: None

test_minute_representation()

Tests the representation of the current minute of the match :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_score_representations()

Tests the score representation attributes :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

test_url()

Tests the URL generation :return: None

bundesliga_tippspiel.test.db.match_data.test_Player module

class bundesliga_tippspiel.test.db.match_data.test_Player.TestPlayer(methodName='runTest')

Bases: bundesliga_tippspiel.test.db.ModelTestFramework._ModelTestFramework

Tests the Player 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_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.match_data.test_Team module

class bundesliga_tippspiel.test.db.match_data.test_Team.TestTeam(methodName='runTest')

Bases: bundesliga_tippspiel.test.db.ModelTestFramework._ModelTestFramework

Tests the Team 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_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

test_url()

Tests the URL generation :return: None

Module contents