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 7c3f16c commit 5922deb
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions search/tests/test_timer.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
import datetime
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-ancestors
""" Tests for timing functionality """

import datetime
from django.test import TestCase
from search.utils import Timer


class TimerTest(TestCase):
"""
Timer Test Case
"""

def test_start_timer(self):
timer = Timer()
timer.start()
timer.stop()
self.assertTrue(timer.start_time is not None)
self.assertTrue(timer.end_time is not None)
self.assertIsNotNone(timer.start_time)
self.assertIsNotNone(timer.end_time)

def test_elapsed_time(self):
# pylint: disable=protected-access
Expand Down

0 comments on commit 5922deb

Please sign in to comment.