Exemplo n.º 1
0
    def setUpClass(self):
        print 'Setting up reviews tests.'
        self.browser=start_sauce_and_login()

        self.c = Client()
        response = self.c.post('/signin', {'entity': config.TEST_ENTITY})
        link = dict(response.items())['Location']

        self.browser.get(link)
        self.browser.find_element_by_class_name('btn-success').click()
        oauth_approval_url = self.browser.current_url

        self.c.get(oauth_approval_url)
        print 'Running reviews tests.'
Exemplo n.º 2
0
 def setUpClass(self):
     print "Setting up tentusers tests."
     self.browser = start_sauce_and_login()