Skip to content

Commit

Permalink
Add time.sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiormb authored Oct 7, 2018
1 parent 26efb75 commit 05365ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,13 @@ def test_top_dvd(self):
# For renovate the headers
self.service = python_filmaffinity.FilmAffinity()
movies = self.service.top_dvd(top=10)
time.sleep(4)
self.check_list(movies)
movies = self.service.top_dvd(top=20)
time.sleep(4)
self.assertEqual(len(movies), 20)
movies = self.service.top_dvd(top=80)
time.sleep(4)
self.assertEqual(len(movies), 40)
self.check_list(movies)

Expand Down

0 comments on commit 05365ef

Please sign in to comment.