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)
| 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") |
no test coverage detected