Esempio n. 1
0
def test_TMDB_MovieAppendTo():
    t = TMDB(mock=True)
    extra_responses = [
        'alternative_titles', 'casts', 'images', 'keywords', 'releases',
        'trailers', 'similar_movies', 'lists', 'changes'
    ]
    result = t.movie(387, append_to_response=extra_responses)
    assert result is not None
Esempio n. 2
0
def test_TMDB_CollectionSearch():
    t = TMDB(mock=True)
    result = t.collection_search('Die Hard')
    assert result is not None
Esempio n. 3
0
def test_TMDB_Collection():
    t = TMDB(mock=True)
    result = t.collection(1570)
    assert result is not None
Esempio n. 4
0
def test_TMDB_MovieSearch():
    t = TMDB(mock=True)
    result = t.movie_search('Das Boot', language='en')
    assert result is not None
Esempio n. 5
0
def test_TMDB_MovieImages():
    t = TMDB(mock=True)
    result = t.movie_images(387)
    file_path = result['posters'][0]['file_path']
    _image = t.image(file_path, 'w500')
Esempio n. 6
0
def test_TMDB_MovieLanguage():
    t = TMDB(mock=True)
    result = t.movie(387, language='fr')
    assert result is not None
Esempio n. 7
0
def test_TMDB_Movie():
    t = TMDB(mock=True)
    result = t.movie(387)
    assert result is not None
Esempio n. 8
0
def test_TMDB_Configuration():
    t = TMDB(mock=True)
    t.configuration()