jerrycan.test.db package¶
Submodules¶
jerrycan.test.db.TestApiKey module¶
- class jerrycan.test.db.TestApiKey.TestApiKey(methodName='runTest')¶
Bases:
jerrycan.test.TestFramework._TestFramework
Class that tests the ApiKey database model
- test_equality()¶
Tests checking equality for model objects :return: None
- test_expiration()¶
Tests if the expiration of API keys works correctly :return: None
- test_hashing()¶
Tests using the model objects as keys in a dictionary :return: None
- test_json_representation()¶
Tests the JSON representation of the model :return: None
- test_repr()¶
Tests the __repr__ method of the model class :return: None
- test_string_representation()¶
Tests the string representation of the model :return: None
- test_verifying_key()¶
Tests verifying an api key :return: None
jerrycan.test.db.TestIDModelMixin module¶
- class jerrycan.test.db.TestIDModelMixin.TestModelMixin(methodName='runTest')¶
Bases:
jerrycan.test.TestFramework._TestFramework
Class that tests the ModelMixin class
- test_enum_attributes()¶
Tests if enum attributes are handled correctly :return: None
- test_json_representation()¶
Tests the JSOn representation of a ModelMixin :return: None
jerrycan.test.db.TestTelegramChatId module¶
- class jerrycan.test.db.TestTelegramChatId.TestTelegramChatId(methodName='runTest')¶
Bases:
jerrycan.test.TestFramework._TestFramework
Class that tests the TelegramChatId database model
- test_equality()¶
Tests checking equality for model objects :return: None
- test_hashing()¶
Tests using the model objects as keys in a dictionary :return: None
- test_json_representation()¶
Tests the JSON representation of the model :return: None
- test_repr()¶
Tests the __repr__ method of the model class :return: None
- test_sending_message()¶
Tests sending a message :return: None
- test_string_representation()¶
Tests the string representation of the model :return: None
jerrycan.test.db.TestUser module¶
- class jerrycan.test.db.TestUser.TestUser(methodName='runTest')¶
Bases:
jerrycan.test.TestFramework._TestFramework
Class that tests the User database model
- test_equality()¶
Tests checking equality for model objects :return: None
- test_flask_properties()¶
Tests if the flask_login properties work as expected :return: None
- test_hashing()¶
Tests using the model objects as keys in a dictionary :return: None
- test_json_representation()¶
Tests the JSON representation of the model :return: None
- test_json_with_telegram_chat_id()¶
Tests whether or not including children can cause recursion errors :return: None
- test_repr()¶
Tests the __repr__ method of the model class :return: None
- test_string_representation()¶
Tests the string representation of the model :return: None
- test_verifying_password()¶
Tests verifying the password of a user :return: None