diff --git a/tests/unit/test_tags.py b/tests/unit/test_tags.py index c4ecd4a..f915b99 100644 --- a/tests/unit/test_tags.py +++ b/tests/unit/test_tags.py @@ -35,18 +35,6 @@ class TestTagsList(TestTags): self.assertEqual(result[1].id, "tag2") self.assertEqual(result[1].count, 5) -class TestTagCreate(TestTags): - # TODO: should return a tag object, not a result dict - @unittest.expectedFailure - @mock.patch.object(openphoto.OpenPhoto, 'post') - def test_tag_create(self, mock_post): - """Check that a tag can be created""" - mock_post.return_value = self._return_value(self.test_tags_dict[0]) - result = self.client.tag.create(tag="Test", foo="bar") - mock_post.assert_called_with("/tag/create.json", tag="Test", foo="bar") - self.assertEqual(result.id, "tag1") - self.assertEqual(result.count, 11) - class TestTagDelete(TestTags): @mock.patch.object(openphoto.OpenPhoto, 'post') def test_tag_delete(self, mock_post):