remove test_last_field_name_like_operator (it's a dupe of the same test in tests/queryset/transform.py)
This commit is contained in:
parent
49035543b9
commit
b78010aa94
@ -4962,20 +4962,6 @@ class QuerySetTest(unittest.TestCase):
|
|||||||
for p in Person.objects():
|
for p in Person.objects():
|
||||||
self.assertEqual(p.name, 'a')
|
self.assertEqual(p.name, 'a')
|
||||||
|
|
||||||
def test_last_field_name_like_operator(self):
|
|
||||||
class EmbeddedItem(EmbeddedDocument):
|
|
||||||
type = StringField()
|
|
||||||
|
|
||||||
class Doc(Document):
|
|
||||||
item = EmbeddedDocumentField(EmbeddedItem)
|
|
||||||
|
|
||||||
Doc.drop_collection()
|
|
||||||
|
|
||||||
doc = Doc(item=EmbeddedItem(type="axe"))
|
|
||||||
doc.save()
|
|
||||||
|
|
||||||
self.assertEqual(1, Doc.objects(item__type__="axe").count())
|
|
||||||
|
|
||||||
def test_len_during_iteration(self):
|
def test_len_during_iteration(self):
|
||||||
"""Tests that calling len on a queyset during iteration doesn't
|
"""Tests that calling len on a queyset during iteration doesn't
|
||||||
stop paging.
|
stop paging.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user