diff --git a/search/tests/test_api_timing_events.py b/search/tests/test_api_timing_events.py index 7405621a..6ac658b1 100644 --- a/search/tests/test_api_timing_events.py +++ b/search/tests/test_api_timing_events.py @@ -11,6 +11,7 @@ from search.api import emit_api_timing_event from unittest.mock import patch, call + @override_settings(SEARCH_ENGINE="search.tests.mock_search_engine.MockSearchEngine") class TimingEventsTest(TestCase): """ Tests to see if timing events are emitted""" @@ -21,12 +22,10 @@ def setUp(self): self.mock_track = patcher.start() self.addCleanup(patcher.stop) - def tearDown(self): MockSearchEngine.destroy() return super().tearDown() - def test_perform_search(self): # pylint: disable=protected-access