MCPcopy
hub / github.com/django/django / test_default_name

Method test_default_name

tests/backends/base/test_creation.py:35–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33
34class TestDbSignatureTests(SimpleTestCase):
35 def test_default_name(self):
36 # A test db name isn't set.
37 prod_name = "hodor"
38 test_connection = get_connection_copy()
39 test_connection.settings_dict["NAME"] = prod_name
40 test_connection.settings_dict["TEST"] = {"NAME": None}
41 signature = BaseDatabaseCreation(test_connection).test_db_signature()
42 self.assertEqual(signature[3], TEST_DATABASE_PREFIX + prod_name)
43
44 def test_custom_test_name(self):
45 # A regular test db name is set.

Callers

nothing calls this directly

Calls 3

get_connection_copyFunction · 0.85
test_db_signatureMethod · 0.45

Tested by

no test coverage detected