2017-02-02 04:47:22 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2017-02-02 04:10:12 +00:00
|
|
|
def test_mark_movie_watched(a_movie):
|
|
|
|
a_movie.markUnwatched()
|
|
|
|
print('Marking movie watched: %s' % a_movie)
|
|
|
|
print('View count: %s' % a_movie.viewCount)
|
|
|
|
a_movie.markWatched()
|
|
|
|
print('View count: %s' % a_movie.viewCount)
|
|
|
|
assert a_movie.viewCount == 1, 'View count 0 after watched.'
|
|
|
|
a_movie.markUnwatched()
|
|
|
|
print('View count: %s' % a_movie.viewCount)
|
|
|
|
assert a_movie.viewCount == 0, 'View count 1 after unwatched.'
|
2017-01-09 04:40:39 +00:00
|
|
|
|
|
|
|
|
2017-02-02 04:10:12 +00:00
|
|
|
def test_refresh_section(pms):
|
|
|
|
shows = pms.library.section('TV Shows')
|
|
|
|
#shows.refresh()
|
2017-01-09 04:40:39 +00:00
|
|
|
|
|
|
|
|
2017-02-02 04:10:12 +00:00
|
|
|
def test_refresh_video(pms):
|
|
|
|
result = pms.search('16 blocks')
|
|
|
|
#result[0].refresh()
|