MCPcopy
hub / github.com/django/django / test_FK_raw_query

Method test_FK_raw_query

tests/raw_query/tests.py:154–160  ·  view source on GitHub ↗

Test of a simple raw query against a model containing a foreign key

(self)

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls 2

allMethod · 0.45

Tested by

no test coverage detected