Try to put the test environment back the way we found it,
to save teardown/setup time.
This commit is contained in:
parent
d2e621935a
commit
76f27a7dbb
3 changed files with 13 additions and 1 deletions
|
@ -26,6 +26,10 @@ class TestActivities(test_base.TestBase):
|
|||
for activity in activities:
|
||||
self.assertIn(activity.data.id, [photo.id for photo in photos])
|
||||
|
||||
# Put the environment back the way we found it
|
||||
for photo in photos:
|
||||
photo.update(tags=self.TEST_TAG)
|
||||
|
||||
def test_list_filter(self):
|
||||
"""
|
||||
Check that the activity list filter parameter works correctly
|
||||
|
@ -43,6 +47,10 @@ class TestActivities(test_base.TestBase):
|
|||
self.assertEqual(len(upload_activities), len(photos))
|
||||
self.assertEqual(len(update_activities), 1)
|
||||
|
||||
# Put the environment back the way we found it
|
||||
for photo in photos:
|
||||
photo.update(tags=self.TEST_TAG)
|
||||
|
||||
# The purge endpoint currently reports a 500: Internal Server Error
|
||||
# PHP Fatal error:
|
||||
# Call to undefined method DatabaseMySql::postActivitiesPurge()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue