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:
Stefan Wojcik 2017-03-05 21:24:40 -05:00
parent 49035543b9
commit b78010aa94

View File

@ -4962,20 +4962,6 @@ class QuerySetTest(unittest.TestCase):
for p in Person.objects():
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):
"""Tests that calling len on a queyset during iteration doesn't
stop paging.