Skip to content

Commit

Permalink
Fix test for Shippable environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Smith committed Jan 30, 2017
1 parent d92df5c commit 430133b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/acitoolkit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3209,7 +3209,7 @@ def login_to_apic(self):
session = Session(URL, LOGIN, cert_name=CERT_NAME, key=KEY, subscription_enabled=False)
return session

@unittest.skipUnless(os.path.isfile(KEY), 'Key file does not exist.')
@unittest.skipUnless('KEY' in globals() and os.path.isfile(KEY), 'Key file does not exist.')
def test_get_tenants(self):
"""
Test that cert auth can get Tenants
Expand All @@ -3218,7 +3218,7 @@ def test_get_tenants(self):
tenants = Tenant.get(session)
self.assertTrue(len(tenants) > 0)

@unittest.skipUnless(os.path.isfile(KEY), 'Key file does not exist.')
@unittest.skipUnless('KEY' in globals() and os.path.isfile(KEY), 'Key file does not exist.')
def test_get_with_params(self):
"""
Test that URL encoded parameters do not break cert auth
Expand Down

0 comments on commit 430133b

Please sign in to comment.