Esempio n. 1
0
def test_process_vote_details_info():
    imdb_scraper = IMDBScraper()
    info = imdb_scraper.process_vote_details_info('0133093')
    assert isinstance(info, dict)
    assert info['vote_details']['imdb users'] == {
        'votes': 1379920,
        'rating': 8.7
    }
    assert info['vote_details']['non us users'] == {
        'votes': 604641,
        'rating': 8.7
    }
Esempio n. 2
0
def test_process_vote_details_info():
    imdb_scraper = IMDBScraper()
    info = imdb_scraper.process_vote_details_info('1630029')
    assert isinstance(info, dict)
    assert info['vote_details'] is None