mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
This commit is contained in:
parent
4bb70cbcc6
commit
321e94fa41
185 changed files with 1216 additions and 1528 deletions
|
@ -236,7 +236,7 @@ class Sqlite3InMemoryTestDbs(TestCase):
|
|||
class DummyBackendTest(unittest.TestCase):
|
||||
def test_setup_databases(self):
|
||||
"""
|
||||
Test that setup_databases() doesn't fail with dummy database backend.
|
||||
setup_databases() doesn't fail with dummy database backend.
|
||||
"""
|
||||
tested_connections = db.ConnectionHandler({})
|
||||
with mock.patch('django.test.utils.connections', new=tested_connections):
|
||||
|
@ -248,7 +248,7 @@ class DummyBackendTest(unittest.TestCase):
|
|||
class AliasedDefaultTestSetupTest(unittest.TestCase):
|
||||
def test_setup_aliased_default_database(self):
|
||||
"""
|
||||
Test that setup_datebases() doesn't fail when 'default' is aliased
|
||||
setup_datebases() doesn't fail when 'default' is aliased
|
||||
"""
|
||||
tested_connections = db.ConnectionHandler({
|
||||
'default': {
|
||||
|
@ -353,7 +353,7 @@ class AutoIncrementResetTest(TransactionTestCase):
|
|||
class EmptyDefaultDatabaseTest(unittest.TestCase):
|
||||
def test_empty_default_database(self):
|
||||
"""
|
||||
Test that an empty default database in settings does not raise an ImproperlyConfigured
|
||||
An empty default database in settings does not raise an ImproperlyConfigured
|
||||
error when running a unit test that does not use a database.
|
||||
"""
|
||||
testcases.connections = db.ConnectionHandler({'default': {}})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue