Add activity endpoint support

This commit is contained in:
Pete 2013-08-19 18:12:29 +01:00
parent 55778dcd83
commit 707eb270ee
9 changed files with 278 additions and 24 deletions

View file

@ -124,7 +124,7 @@ class TestBase(unittest.TestCase):
logging.info("Finished %s\n", self.id())
@classmethod
def _create_test_photos(cls):
def _create_test_photos(cls, tag=True):
""" Upload three test photos """
album = cls.client.album.create(cls.TEST_ALBUM)
photos = [
@ -139,8 +139,9 @@ class TestBase(unittest.TestCase):
albums=album.id),
]
# Add the test tag, removing any autogenerated tags
for photo in photos:
photo.update(tags=cls.TEST_TAG)
if tag:
for photo in photos:
photo.update(tags=cls.TEST_TAG)
@classmethod
def _delete_all(cls):