Skip to content

Commit 0d32e22

Browse files
committed
Added time test
1 parent 4e8eb7f commit 0d32e22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ def test_relevance_of_response(self):
278278
)
279279
# check if number of commits >= 50, from the time the tests were initiated
280280
self.assertTrue(int(response.json()['details']['commits']) >= 50)
281+
282+
# modified date should be after created date
283+
self.assertTrue(response.json()['details']['created_time'] <= response.json()['details']['modified_time'])
281284
# check if number of contributors is same as contributors added
282285
self.assertEqual(response.json()['details']['no_of_contributors'], Contribution.objects.filter(component=Component.objects.get(name='biojs-vis-rohart-msc-test')).count())
283286
self.assertEqual(response.json()['details']['no_of_contributors'], len(response.json()['contributors']))

0 commit comments

Comments
 (0)