Esempio n. 1
0
class TMDBSiteTest(TestCase):
    def setUp(self):
        self.site = TMDB(None)

    def test_login(self):
        self.assertIn(self.site.USERNAME, self.site.browser.page_source)

    def tearDown(self):
        self.site.kill_browser()
Esempio n. 2
0
 def __init__(self, args):
     super(TMDBRatingsParser, self).__init__(TMDB(args), args)
Esempio n. 3
0
 def setUp(self):
     self.site = TMDB(None)
Esempio n. 4
0
 def __init__(self, args):
     super(TMDBRatingsInserter, self).__init__(TMDB(args), args)
     self.url_for_csv_file_upload = self._get_url_for_csv_upload()
     self.css_id_of_file_input_element = 'csv_file'
     self.xpath_selector_for_submit_button = "//form[@name='import_csv']//input[@type='submit']"
Esempio n. 5
0
 def __init__(self, args):
     super(TMDBRatingsInserter, self).__init__(TMDB(args), args)
     self.url_for_csv_file_upload = 'https://www.themoviedb.org/account/StegSchreck/import'
     self.css_id_of_file_input_element = 'csv_file'
     self.xpath_selector_for_submit_button = "//form[@name='import_csv']//input[@type='submit']"