We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de604d3 commit 89d3ef9Copy full SHA for 89d3ef9
tests/queries_/test_search.py
@@ -1,12 +1,13 @@
1
from django.test import TestCase
2
3
-from .models import Article
4
-
5
from django_mongodb_backend.functions import SearchEquals
6
+from .models import Article
+
7
8
class SearchTests(TestCase):
9
def test_1(self):
10
Article.objects.create(headline="cross", number=1, body="body")
11
aa = Article.objects.annotate(score=SearchEquals(path="headline", value="cross")).all()
12
- print(aa)
+ self.assertEqual(aa.score == 1)
13
+ # print(aa)
0 commit comments