示例#1
0
 def setUp(self):
     BaseOAuth.setUp(self, api_name='payments')
     self.app = Addon.objects.get(pk=337141)
     self.app.update(premium_type=amo.ADDON_FREE_INAPP)
     self.other = UserProfile.objects.get(pk=999)
     AddonUser.objects.create(addon=self.app, user=self.profile)
     self.account = setup_payment_account(self.app, self.profile,
                                          uid='uid2').payment_account
     self.account.name = 'account'
     self.account.save()
示例#2
0
 def setUp(self):
     BaseOAuth.setUp(self, api_name='payments')
     self.app = Addon.objects.get(pk=337141)
     self.app.update(premium_type=amo.ADDON_FREE_INAPP)
     self.other = UserProfile.objects.get(pk=999)
     AddonUser.objects.create(addon=self.app, user=self.profile)
     self.account = setup_payment_account(self.app, self.profile,
                                          uid='uid2').payment_account
     self.account.name = 'account'
     self.account.save()
示例#3
0
 def setUp(self):
     BaseOAuth.setUp(self, api_name='payments')
示例#4
0
 def setUp(self):
     BaseOAuth.setUp(self, api_name='payments')
示例#5
0
 def setUp(self):
     BaseOAuth.setUp(self, api_name='webpay')
     self.create_switch('marketplace')
     self.list_url = list_url('prepare')
     self.user = UserProfile.objects.get(pk=2519)