tests.database package
tests.database.base module
Base database test class module.
- Classes:
BaseTestDatabaseTestCase
-
class tests.database.base.BaseTestDatabaseTestCase(methodName='runTest')[source]
Bases: TestCase
Base class for database test cases.
-
setUp()[source]
Hook method for setting up the test fixture before exercising it.
-
classmethod setUpClass()[source]
Hook method for setting up class fixture before running tests in the class.
-
classmethod tearDownClass()[source]
Hook method for deconstructing the class fixture after running all tests in the class.
tests.database.test_database module
Module for tests for application database
- Classes:
TestGetDB
-
class tests.database.test_database.TestGetDB(methodName='runTest')[source]
Bases: BaseTestDatabaseTestCase
Test case class for testing get_db function
-
test_get_db_returns_session_object() → None[source]
Test that get_db returns session object
:return: None
-
test_get_db_returns_session_object_without_any_missing_tables() → None[source]
Test that get_db returns session of database without any missing tables
:return: None