There was an error while loading. Please reload this page.
2 parents cb286ee + d173321 commit 4054663Copy full SHA for 4054663
1 file changed
tests/test_local.py
@@ -3,10 +3,14 @@
3
4
class TestLocal(unittest.TestCase):
5
def setUp(self):
6
- self.local = Local(os.environ['BROWSERSTACK_ACCESS_KEY'])
+ access_key = os.environ.get('BROWSERSTACK_ACCESS_KEY')
7
+ if not access_key:
8
+ self.skipTest('BROWSERSTACK_ACCESS_KEY is not set; skipping live BrowserStack Local tests')
9
+ self.local = Local(access_key)
10
11
def tearDown(self):
- self.local.stop()
12
+ if hasattr(self, 'local'):
13
+ self.local.stop()
14
15
def test_start_local(self):
16
self.local.start()
0 commit comments