From 531ecfb3793babd0b46c25b9125a185ff846dcaf Mon Sep 17 00:00:00 2001 From: GappleBee Date: Fri, 22 Nov 2024 22:11:34 +0000 Subject: [PATCH] Converted comments to docstrings. --- tests/postgres_tests/test_search.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/postgres_tests/test_search.py b/tests/postgres_tests/test_search.py index d57409fc9f..a996fc01e8 100644 --- a/tests/postgres_tests/test_search.py +++ b/tests/postgres_tests/test_search.py @@ -814,8 +814,10 @@ class TestLexemes(GrailTestData, PostgreSQLTestCase): self.assertCountEqual(searched, [self.verse1, self.verse2, self.verse0]) def test_advanced(self): - # Test cominbation of & and | - # This is mainly helpful for checking the test_advanced_invert below + """ + Test cominbation of & and | + This is mainly helpful for checking the test_advanced_invert below + """ searched = Line.objects.annotate(search=SearchVector("dialogue")).filter( search=SearchQuery( Lexeme("shall") & Lexeme("use") & Lexeme("larger") | Lexeme("nostrils") @@ -830,8 +832,10 @@ class TestLexemes(GrailTestData, PostgreSQLTestCase): self.assertCountEqual(searched, [self.verse0, self.verse2]) def test_advanced_invert(self): - # Test inverting a query that uses a cominbation of & and | - # Should return the opposite of test_advanced + """ + Test inverting a query that uses a cominbation of & and | + Should return the opposite of test_advanced + """ searched = Line.objects.annotate(search=SearchVector("dialogue")).filter( search=SearchQuery( ~(