Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Some tests for public_id/pay setup (bug 834344)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumar303 committed Jan 30, 2013
1 parent 7ced0d4 commit 3fe78f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions mkt/developers/tests/test_views_payments.py
Expand Up @@ -224,6 +224,12 @@ def test_associate_acct_to_app(self):
eq_(res.status_code, 200)
eq_(self.webapp.app_payment_account.payment_account.pk, acct.pk)

# Make sure the product was created with some properties we care about.
kw = self.sol.post_product.call_args[1]['data']
assert kw['public_id'], kw
assert kw['external_id'], kw
assert kw['secret'], kw


class TestRegions(amo.tests.TestCase):
fixtures = ['base/apps', 'base/users', 'webapps/337141-steamcube']
Expand Down
2 changes: 1 addition & 1 deletion mkt/developers/views_payments.py
Expand Up @@ -220,7 +220,7 @@ def in_app_config(request, addon_id, addon, webapp=True):
if request.method == 'POST':
(client.api.generic
.product(seller_config['resource_pk'])
.patch(data={'secret':generate_key(48)}))
.patch(data={'secret': generate_key(48)}))
messages.success(request, _('Changes successfully saved.'))
return redirect(reverse('mkt.developers.apps.in_app_config',
args=[addon.app_slug]))
Expand Down

0 comments on commit 3fe78f8

Please sign in to comment.