(self)
| 167 | books[1].author |
| 168 | |
| 169 | def test_fk_fetch_mode_raise(self): |
| 170 | query = "SELECT * FROM raw_query_book" |
| 171 | books = list(Book.objects.fetch_mode(RAISE).raw(query)) |
| 172 | msg = "Fetching of Book.author blocked." |
| 173 | with self.assertRaisesMessage(FieldFetchBlocked, msg) as cm: |
| 174 | books[0].author |
| 175 | self.assertIsNone(cm.exception.__cause__) |
| 176 | self.assertTrue(cm.exception.__suppress_context__) |
| 177 | |
| 178 | def test_db_column_handler(self): |
| 179 | """ |
nothing calls this directly
no test coverage detected