mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #23620 -- Used more specific assertions in the Django test suite.
This commit is contained in:
committed by
Tim Graham
parent
c0c78f1b70
commit
f7969b0920
@@ -73,9 +73,9 @@ class RawQueryTests(TestCase):
|
||||
iterated over.
|
||||
"""
|
||||
q = Author.objects.raw('SELECT * FROM raw_query_author')
|
||||
self.assertTrue(q.query.cursor is None)
|
||||
self.assertIsNone(q.query.cursor)
|
||||
list(q)
|
||||
self.assertTrue(q.query.cursor is not None)
|
||||
self.assertIsNotNone(q.query.cursor)
|
||||
|
||||
def test_FK_raw_query(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user