2017-02-01 23:47:22 -05:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2017-01-08 23:40:39 -05:00
|
|
|
|
2017-04-14 20:47:59 -04:00
|
|
|
def test_mark_movie_watched(movie):
|
|
|
|
movie.markUnwatched()
|
|
|
|
print('Marking movie watched: %s' % movie)
|
|
|
|
print('View count: %s' % movie.viewCount)
|
|
|
|
movie.markWatched()
|
2021-05-30 16:07:59 -07:00
|
|
|
movie.reload()
|
2017-04-14 20:47:59 -04:00
|
|
|
print('View count: %s' % movie.viewCount)
|
|
|
|
assert movie.viewCount == 1, 'View count 0 after watched.'
|
|
|
|
movie.markUnwatched()
|
2021-05-30 16:07:59 -07:00
|
|
|
movie.reload()
|
2017-04-14 20:47:59 -04:00
|
|
|
print('View count: %s' % movie.viewCount)
|
|
|
|
assert movie.viewCount == 0, 'View count 1 after unwatched.'
|
2017-01-08 23:40:39 -05:00
|
|
|
|
|
|
|
|
2017-04-14 20:47:59 -04:00
|
|
|
def test_refresh_section(tvshows):
|
|
|
|
tvshows.refresh()
|
2017-01-08 23:40:39 -05:00
|
|
|
|
2017-04-14 20:47:59 -04:00
|
|
|
|
|
|
|
def test_refresh_video(movie):
|
|
|
|
movie.refresh()
|