From b78010aa940af31a4b36bd074965c037d78eee0d Mon Sep 17 00:00:00 2001 From: Stefan Wojcik Date: Sun, 5 Mar 2017 21:24:40 -0500 Subject: [PATCH] remove test_last_field_name_like_operator (it's a dupe of the same test in tests/queryset/transform.py) --- tests/queryset/queryset.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/tests/queryset/queryset.py b/tests/queryset/queryset.py index b496e04a..3ae3fb42 100644 --- a/tests/queryset/queryset.py +++ b/tests/queryset/queryset.py @@ -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.