MCPcopy
hub / github.com/django/django / _test_settings_get

Method _test_settings_get

django/db/backends/oracle/creation.py:386–395  ·  view source on GitHub ↗

Return a value from the test settings dict, or a given default, or a prefixed entry from the main settings dict.

(self, key, default=None, prefixed=None)

Source from the content-addressed store, hash-verified

384 }
385
386 def _test_settings_get(self, key, default=None, prefixed=None):
387 """
388 Return a value from the test settings dict, or a given default, or a
389 prefixed entry from the main settings dict.
390 """
391 settings_dict = self.connection.settings_dict
392 val = settings_dict["TEST"].get(key, default)
393 if val is None and prefixed:
394 val = TEST_DATABASE_PREFIX + settings_dict[prefixed]
395 return val
396
397 def _test_database_name(self):
398 return self._test_settings_get("NAME", prefixed="NAME")

Calls 1

getMethod · 0.45

Tested by

no test coverage detected