From c3a9b21010d3d405ca9c0442754b674a25e5cf75 Mon Sep 17 00:00:00 2001 From: axl89 Date: Fri, 3 Jun 2016 16:58:20 +0200 Subject: [PATCH] Fixed error when DEVELOPMENT env var is not set --- tests/console/include/common_classes_60.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/console/include/common_classes_60.py b/tests/console/include/common_classes_60.py index 4e33f784bd..481ac3de68 100644 --- a/tests/console/include/common_classes_60.py +++ b/tests/console/include/common_classes_60.py @@ -41,7 +41,8 @@ class PandoraWebDriverTestCase(TestCase): def setUp(self): self.time_started = datetime.now() #Start VM in Sauce Labs - if environ["DEVELOPMENT"] == "1": + is_development = os.getenv('DEVELOPMENT', False) + if is_development != False: self.driver = webdriver.Firefox() else: self.driver = webdriver.Remote(command_executor='http://'+self.sauce_username+':'+self.sauce_access_key+'@ondemand.saucelabs.com:80/wd/hub',desired_capabilities=self.desired_cap)