Don't test the tag/create endpoint, as it is redundant and will be removed.

See #38 for details.
This commit is contained in:
sneakypete81 2013-06-30 18:10:15 +01:00
parent 971bab4f7b
commit 4c6b41dbc3

View file

@ -35,18 +35,6 @@ class TestTagsList(TestTags):
self.assertEqual(result[1].id, "tag2") self.assertEqual(result[1].id, "tag2")
self.assertEqual(result[1].count, 5) 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): class TestTagDelete(TestTags):
@mock.patch.object(openphoto.OpenPhoto, 'post') @mock.patch.object(openphoto.OpenPhoto, 'post')
def test_tag_delete(self, mock_post): def test_tag_delete(self, mock_post):