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()
def setUp(self): BaseOAuth.setUp(self, api_name='payments')
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)