Permalink
Browse files

not used mimetype keyword removed

  • Loading branch information...
1 parent 4c36ff5 commit 0f8f42d934ceab48e173dfe06cb0bb87bd7b69f0 @zalun zalun committed Oct 8, 2012
Showing with 4 additions and 3 deletions.
  1. +3 −2 marketplace/client.py
  2. +1 −1 marketplace/tests/testClient.py
View
@@ -54,6 +54,8 @@ def __init__(self, domain=MARKETPLACE_DOMAIN,
@staticmethod
def get_connection(consumer_key, consumer_secret):
+ """Provide Connection object used for communication with the API
+ """
return Connection(consumer_key, consumer_secret)
def url(self, key):
@@ -171,8 +173,7 @@ def delete(self, 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):
+ def create_screenshot(self, app_id, filename, position=1):
"""Add a screenshot to the web app identified by by ``app_id``.
Screenshots are ordered by ``position``.
@@ -211,7 +211,7 @@ def test_add_screenshot(self):
eq_(data['file']['type'], 'image/jpeg')
# create a screenshot with a jpeg image and not default position
self.marketplace.create_screenshot(123,
- path('mozilla.jpg'), mimetype='image/jpeg', position=2)
+ path('mozilla.jpg'), position=2)
data = json.loads(requests.post.call_args[1]['data'])
eq_(data['position'], 2)
eq_(data['file']['type'], 'image/jpeg')

0 comments on commit 0f8f42d

Please sign in to comment.