MCPcopy
hub / github.com/django/django / test_close_match

Method test_close_match

tests/test_utils/tests.py:2384–2391  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2382 self._validate_databases()
2383
2384 def test_close_match(self):
2385 self.__class__.databases = {"defualt"}
2386 message = (
2387 "test_utils.tests.DatabaseAliasTests.databases refers to 'defualt' which "
2388 "is not defined in settings.DATABASES. Did you mean 'default'?"
2389 )
2390 with self.assertRaisesMessage(ImproperlyConfigured, message):
2391 self._validate_databases()
2392
2393 def test_match(self):
2394 self.__class__.databases = {"default", "other"}

Callers

nothing calls this directly

Calls 2

assertRaisesMessageMethod · 0.80
_validate_databasesMethod · 0.80

Tested by

no test coverage detected