Python django.db.backends.base.creation.BaseDatabaseCreation() Examples
The following are 5
code examples of django.db.backends.base.creation.BaseDatabaseCreation().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
django.db.backends.base.creation
, or try the search function
.
Example #1
Source File: test_mocks.py From django-mock-queries with MIT License | 5 votes |
def test_monkey_patch_test_db(self, mock_method): monkey_patch_test_db() creation = BaseDatabaseCreation(None) creation.create_test_db() creation.destroy_test_db('foo_db') mock_method.assert_called_once_with(None) # noinspection PyUnusedLocal
Example #2
Source File: test_creation.py From djongo with GNU Affero General Public License v3.0 | 5 votes |
def patch_test_db_creation(self, execute_create_test_db): return mock.patch.object(BaseDatabaseCreation, '_execute_create_test_db', execute_create_test_db)
Example #3
Source File: test_creation.py From djongo with GNU Affero General Public License v3.0 | 5 votes |
def patch_test_db_creation(self, execute_create_test_db): return mock.patch.object(BaseDatabaseCreation, '_execute_create_test_db', execute_create_test_db)
Example #4
Source File: test_creation.py From djongo with GNU Affero General Public License v3.0 | 5 votes |
def patch_test_db_creation(self, execute_create_test_db): return mock.patch.object(BaseDatabaseCreation, '_execute_create_test_db', execute_create_test_db)
Example #5
Source File: test_creation.py From djongo with GNU Affero General Public License v3.0 | 5 votes |
def patch_test_db_creation(self, execute_create_test_db): return mock.patch.object(BaseDatabaseCreation, '_execute_create_test_db', execute_create_test_db)