Test of a simple raw query against a model containing a foreign key
(self)
| 152 | self.assertIsNotNone(q.query.cursor) |
| 153 | |
| 154 | def test_FK_raw_query(self): |
| 155 | """ |
| 156 | Test of a simple raw query against a model containing a foreign key |
| 157 | """ |
| 158 | query = "SELECT * FROM raw_query_book" |
| 159 | books = Book.objects.all() |
| 160 | self.assertSuccessfulRawQuery(Book, query, books) |
| 161 | |
| 162 | def test_fk_fetch_mode_peers(self): |
| 163 | query = "SELECT * FROM raw_query_book" |
nothing calls this directly
no test coverage detected