예제 #1
0
파일: test_views.py 프로젝트: joakim/druid
    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.'
예제 #2
0
파일: test_views.py 프로젝트: joakim/druid
 def setUpClass(self):
     print "Setting up tentusers tests."
     self.browser = start_sauce_and_login()