From b96df0a18857f10057d9ebefd93689985b142172 Mon Sep 17 00:00:00 2001 From: sneakypete81 Date: Sat, 12 Apr 2014 21:49:40 +0100 Subject: [PATCH] Hosted site's Month/Year tags are no longer deletable https://github.com/photo/frontend/issues/1468 --- tests/functional/test_base.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/functional/test_base.py b/tests/functional/test_base.py index f7e4c25..189c468 100644 --- a/tests/functional/test_base.py +++ b/tests/functional/test_base.py @@ -84,9 +84,11 @@ def setUp(self): self.photos = self.client.photos.list() self.tags = self.client.tags.list() - if (len(self.tags) != 1 or - self.tags[0].id != self.TEST_TAG or - str(self.tags[0].count) != "3"): + tag_ids = [tag.id for tag in self.tags] + tag_counts = [tag.count for tag in self.tags] + if (len(tag_ids) != 3 or + self.TEST_TAG not in tag_ids or + tag_counts != [3, 3, 3]): if self.debug: print("[Regenerating Tags]") else: @@ -96,7 +98,7 @@ def setUp(self): self._create_test_photos() self.photos = self.client.photos.list() self.tags = self.client.tags.list() - if len(self.tags) != 1: + if len(self.tags) != 3: print("Tags: %s" % self.tags) raise Exception("Tag creation failed")