              with self.subTest(query=query):
                  self.assertEqual(str(query), expected_str)
  
  
  @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
  class SearchHeadlineTests(GrailTestData, PostgreSQLTestCase):
      def test_headline(self):
          searched = Line.objects.annotate(
              headline=SearchHeadline(
                  F("dialogue"),
 
</s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add  </s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add  </s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add  </s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add  </s> remove @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
 </s> add 
              with self.subTest(query=query):
                  self.assertEqual(str(query), expected_str)
  
  

  class SearchHeadlineTests(GrailTestData, PostgreSQLTestCase):
      def test_headline(self):
          searched = Line.objects.annotate(
              headline=SearchHeadline(
                  F("dialogue"),
keep keep keep keep replace keep keep keep keep keep
 Refs #33308 -- Ensured type handlers are registered for all PostgreSQL specific tests.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> 
tests/postgres_tests/test_search.py