Test of a simple raw query against a model containing a field with db_column defined.
(self)
| 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">""" |
nothing calls this directly
no test coverage detected