mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed using self outside class
This commit is contained in:
parent
ea77c6fb5d
commit
35f937a630
@ -37,8 +37,6 @@ class PandoraWebDriverTestCase(TestCase):
|
||||
'version': "46",
|
||||
}
|
||||
|
||||
sauce_custom_tags = [environ["TRAVIS_BRANCH"],self.id()]
|
||||
|
||||
def setUp(self):
|
||||
self.time_started = datetime.now()
|
||||
#Start VM in Sauce Labs
|
||||
@ -79,7 +77,7 @@ class PandoraWebDriverTestCase(TestCase):
|
||||
self.driver.quit()
|
||||
#Update Sauce Labs job
|
||||
is_test_successful = self.verificationErrors == []
|
||||
sauce_client.jobs.update_job(driver.session_id, passed=is_test_successful,tags=self.sauce_custom_tags,build_num=environ["TRAVIS_JOB_NUMBER"],name=str(self.id())+"_"+str(environ["TRAVIS_BRANCH"])+"_"+str(environ["TRAVIS_JOB_NUMBER"]))
|
||||
sauce_client.jobs.update_job(driver.session_id, passed=is_test_successful,tags=[environ["TRAVIS_BRANCH"],self.id()],build_num=environ["TRAVIS_JOB_NUMBER"],name=str(self.id())+"_"+str(environ["TRAVIS_BRANCH"])+"_"+str(environ["TRAVIS_JOB_NUMBER"]))
|
||||
|
||||
self.assertEqual([], self.verificationErrors)
|
||||
super(PandoraWebDriverTestCase, self).tearDown()
|
||||
|
Loading…
x
Reference in New Issue
Block a user