(self)
| 306 | self.assertIsNotNone(author.last_name) |
| 307 | |
| 308 | def test_missing_fields_without_PK(self): |
| 309 | query = "SELECT first_name, dob FROM raw_query_author" |
| 310 | msg = "Raw query must include the primary key" |
| 311 | with self.assertRaisesMessage(FieldDoesNotExist, msg): |
| 312 | list(Author.objects.raw(query)) |
| 313 | |
| 314 | def test_missing_fields_fetch_mode_peers(self): |
| 315 | query = "SELECT id, first_name, dob FROM raw_query_author" |
nothing calls this directly
no test coverage detected