MCPcopy
hub / github.com/django/django / _get_test_db_name

Method _get_test_db_name

django/db/backends/sqlite3/creation.py:19–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 )
18
19 def _get_test_db_name(self):
20 test_database_name = self.connection.settings_dict["TEST"]["NAME"] or ":memory:"
21 if test_database_name == ":memory:":
22 return "file:memorydb_%s?mode=memory&cache=shared" % self.connection.alias
23 return test_database_name
24
25 def _create_test_db(self, verbosity, autoclobber, keepdb=False):
26 test_database_name = self._get_test_db_name()

Callers 2

_create_test_dbMethod · 0.95
test_db_signatureMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_db_signatureMethod · 0.76