Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

raise notimplemented added

  • Loading branch information...
commit 7dfddb01c6b70ab9f0beab8f572fb7e03ff3688b 1 parent fdf4759
Piotr Zalewa authored
Showing with 8 additions and 2 deletions.
  1. +2 −1  marketplace/client.py
  2. +6 −1 marketplace/tests/testClient.py
3  marketplace/client.py
View
@@ -169,7 +169,8 @@ def delete(self, app_id):
"""Delete an app from Marketplace
"""
# XXX: This isn't yet implemented on API
- return self.conn.fetch('DELETE', self.url('app') % app_id)
+ # return self.conn.fetch('DELETE', self.url('app') % app_id)
+ raise NotImplementedError()
def create_screenshot(self, app_id, filename, mimetype='image/jpg',
position=1):
7 marketplace/tests/testClient.py
View
@@ -5,6 +5,7 @@
import json
import logging
import os
+import unittest
from base64 import b64encode
@@ -34,7 +35,7 @@ def __init__(self, status_code, content=None):
self.status_code = status_code
self.content = content
-class TestClient(object):
+class TestClient(unittest.TestCase):
def setUp(self):
self.marketplace = marketplace.Client(
@@ -176,11 +177,15 @@ def test_status(self):
eq_(content['manifest'], '0a650e5e4c434b5cb60c5495c0d88a89')
def test_delete(self):
+ raise SkipTest()
requests.delete = Mock(return_value=Response(204, ''))
response = self.marketplace.delete(1)
eq_(response.status_code, 204)
assert not response.content
+ def test_delete_not_implemented(self):
+ self.assertRaises(NotImplementedError, self.marketplace.delete, 1)
+
def test_add_screenshot(self):
path = lambda *a: os.path.join(
os.path.dirname(os.path.abspath(__file__)), *a)
Please sign in to comment.
Something went wrong with that request. Please try again.