summaryrefslogtreecommitdiff
path: root/stats/test_models.py
diff options
context:
space:
mode:
authoradityacp2020-12-04 11:10:12 +0530
committeradityacp2020-12-04 11:10:12 +0530
commitabee2fe4085f42ca3b92192d59150a780a765c26 (patch)
treefa6321676431fc84beef21279a380760c109504f /stats/test_models.py
parentc5b26a3b0d7e29f9813aa4fcdcbcaaa66945b86d (diff)
downloadonline_test-abee2fe4085f42ca3b92192d59150a780a765c26.tar.gz
online_test-abee2fe4085f42ca3b92192d59150a780a765c26.tar.bz2
online_test-abee2fe4085f42ca3b92192d59150a780a765c26.zip
Fix tests
Diffstat (limited to 'stats/test_models.py')
-rw-r--r--stats/test_models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/stats/test_models.py b/stats/test_models.py
index 5506a64..7f84330 100644
--- a/stats/test_models.py
+++ b/stats/test_models.py
@@ -70,7 +70,7 @@ class TrackLessonTestCase(TestCase):
def test_get_current_time(self):
# Given
tracker = self.tracker
- expected_time = 'just started'
+ expected_time = '00:00:00'
# When
current_time = tracker.get_current_time()
@@ -81,7 +81,7 @@ class TrackLessonTestCase(TestCase):
def test_get_video_duration(self):
# Given
tracker = self.tracker
- expected_duration = 'will be available after 25% completion'
+ expected_duration = '00:00:00'
# When
duration = tracker.get_video_duration()
@@ -117,7 +117,7 @@ class TrackLessonTestCase(TestCase):
def test_get_percentage_complete(self):
# Given
tracker = self.tracker
- expected_percentage = 'less than 25%'
+ expected_percentage = 0
# When
percentage = tracker.get_percentage_complete()
@@ -126,7 +126,7 @@ class TrackLessonTestCase(TestCase):
self.assertEqual(percentage, expected_percentage)
# Given
- expected_percentage = 'approx 75 %'
+ expected_percentage = 75
# When
tracker.set_current_time('00:03:00')