          with self.assertRaisesMessage(TypeError, msg):
              Line.objects.filter(dialogue__search=None & SearchQuery("kneecaps"))
  
  
  @modify_settings(INSTALLED_APPS={"append": "django.contrib.postgres"})
  class TestRankingAndWeights(GrailTestData, PostgreSQLTestCase):
      def test_ranking(self):
          searched = (
              Line.objects.filter(character=self.minstrel)
              .annotate(
 
</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.assertRaisesMessage(TypeError, msg):
              Line.objects.filter(dialogue__search=None & SearchQuery("kneecaps"))
  
  

  class TestRankingAndWeights(GrailTestData, PostgreSQLTestCase):
      def test_ranking(self):
          searched = (
              Line.objects.filter(character=self.minstrel)
              .annotate(
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