Update tests to use multipart upload
This commit is contained in:
parent
e8ccfa8233
commit
d94c7fd8cd
2 changed files with 16 additions and 21 deletions
|
@ -99,15 +99,15 @@ class TestBase(unittest.TestCase):
|
|||
""" Upload three test photos """
|
||||
album = cls.client.album.create(cls.TEST_ALBUM, visible=True)
|
||||
photos = [
|
||||
cls.client.photo.upload_encoded("tests/test_photo1.jpg",
|
||||
title=cls.TEST_TITLE,
|
||||
tags=cls.TEST_TAG),
|
||||
cls.client.photo.upload_encoded("tests/test_photo2.jpg",
|
||||
title=cls.TEST_TITLE,
|
||||
tags=cls.TEST_TAG),
|
||||
cls.client.photo.upload_encoded("tests/test_photo3.jpg",
|
||||
title=cls.TEST_TITLE,
|
||||
tags=cls.TEST_TAG),
|
||||
cls.client.photo.upload("tests/test_photo1.jpg",
|
||||
title=cls.TEST_TITLE,
|
||||
tags=cls.TEST_TAG),
|
||||
cls.client.photo.upload("tests/test_photo2.jpg",
|
||||
title=cls.TEST_TITLE,
|
||||
tags=cls.TEST_TAG),
|
||||
cls.client.photo.upload("tests/test_photo3.jpg",
|
||||
title=cls.TEST_TITLE,
|
||||
tags=cls.TEST_TAG),
|
||||
]
|
||||
# Remove the auto-generated month/year tags
|
||||
tags_to_remove = [p for p in photos[0].tags if p != cls.TEST_TAG]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue