Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnuon committed Jan 4, 2024
1 parent bd5edf4 commit 621be29
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions search/tests/test_api_timing_events.py
Original file line number Diff line number Diff line change
@@ -1,34 +1,31 @@
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-ancestors
""" Tests for timing functionality """

import datetime
from unittest.mock import patch, call

from django.test import TestCase
from django.test.utils import override_settings
from search.tests.mock_search_engine import MockSearchEngine
from search.utils import Timer
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"""

def setUp(self):
super().setUp()
MockSearchEngine.destroy()
patcher = patch('search.api.track')
self.mock_track = patcher.start()
self.addCleanup(patcher.stop)

def tearDown(self):
MockSearchEngine.destroy()
return super().tearDown()
super().tearDown()

def test_perform_search(self):
# pylint: disable=protected-access

search_term = "testing search"
course_id = "mock.course.id"

Expand Down

0 comments on commit 621be29

Please sign in to comment.