Skip to content

Commit

Permalink
not used mimetype keyword removed
Browse files Browse the repository at this point in the history
  • Loading branch information
zalun committed Oct 8, 2012
1 parent 4c36ff5 commit 0f8f42d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions marketplace/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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``.
Expand Down
2 changes: 1 addition & 1 deletion marketplace/tests/testClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.