Skip to content

Commit

Permalink
Don't test the tag/create endpoint, as it is redundant and will be re…
Browse files Browse the repository at this point in the history
…moved.

See #38 for details.
  • Loading branch information
sneakypete81 committed Jun 30, 2013
1 parent 971bab4 commit 4c6b41d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/unit/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ def test_tags_list(self, mock_get):
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):
Expand Down

0 comments on commit 4c6b41d

Please sign in to comment.