Skip to content

Commit

Permalink
Merge pull request facebookarchive#11 from wkoot/p26-skip-tests
Browse files Browse the repository at this point in the history
Python2.6 skipping tests
  • Loading branch information
wkoot authored Feb 27, 2017
2 parents 6b07bdf + 9702c7f commit 4207a55
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ def __getattribute__(self, attr):
return actual_val


@unittest.skipUnless(TEST_AUTH, 'Skipping InstagramAuthTests')
class InstagramAuthTests(unittest.TestCase):
def setUp(self):
if not TEST_AUTH:
raise unittest.SkipTest()

self.unauthenticated_api = TestInstagramAPI(client_id=client_id, redirect_uri=redirect_uri, client_secret=client_secret)

def test_authorize_login_url(self):
Expand Down Expand Up @@ -253,4 +255,7 @@ def test_timestamp_to_datetime(self):


if __name__ == '__main__':
if not TEST_AUTH:
del InstagramAuthTests

unittest.main()

0 comments on commit 4207a55

Please sign in to comment.