diff --git a/cl/search/tests/tests.py b/cl/search/tests/tests.py index fe59be528d..3575abf325 100644 --- a/cl/search/tests/tests.py +++ b/cl/search/tests/tests.py @@ -1643,35 +1643,6 @@ def test_search_query_saving(self) -> None: "Repeated query not marked as having hit cache", ) - # Force Solr use - @override_flag("oa-es-active", False) - @override_flag("r-es-active", False) - @override_flag("p-es-active", False) - @override_flag("o-es-active", False) - def test_search_query_saving_solr(self) -> None: - """Are queries saved when using solr search (do_search)""" - for query in self.searches: - url = f"{reverse('show_results')}?{query}" - self.client.get(url) - last_query = SearchQuery.objects.last() - expected_query = self.normalize_query(query, replace_space=True) - stored_query = self.normalize_query(last_query.get_params) - self.assertEqual( - expected_query, - stored_query, - f"Query was not saved properly. Expected {expected_query}, got {stored_query}", - ) - self.assertEqual( - last_query.engine, - SearchQuery.SOLR, - f"Saved wrong `engine` value, expected {SearchQuery.SOLR}", - ) - self.assertEqual( - last_query.source, - SearchQuery.WEBSITE, - self.source_error_message, - ) - def test_failed_es_search_queries(self) -> None: """Do we flag failed ElasticSearch queries properly?""" query = "type=r&q=contains/sproximity token"