MCPcopy
hub / github.com/django/django / test_db_column_handler

Method test_db_column_handler

tests/raw_query/tests.py:178–185  ·  tests/raw_query/tests.py::RawQueryTests.test_db_column_handler

Test of a simple raw query against a model containing a field with db_column defined.

(self)

Source from the content-addressed store, hash-verified

176 self.assertTrue(cm.exception.__suppress_context__)
177
178 def test_db_column_handler(self):
179 class="st">"""
180 Test of a simple raw query against a model containing a field with
181 db_column defined.
182 class="st">"""
183 query = class="st">"SELECT * FROM raw_query_coffee"
184 coffees = Coffee.objects.all()
185 self.assertSuccessfulRawQuery(Coffee, query, coffees)
186
187 def test_pk_with_mixed_case_db_column(self):
188 class="st">"""

Callers

nothing calls this directly

Calls 2

allMethod · 0.45

Tested by

no test coverage detected