Exemple #1
0
 def setUp(self):
     RestOAuth.setUp(self)  # Avoid calling PurchaseTest.setUp().
     self.user = UserProfile.objects.get(pk=2519)
     self.list_url = reverse('webpay-prepare')
     self.setup_base()
     self.setup_package()
     self.setup_mock_generic_product()
Exemple #2
0
 def setUp(self):
     RestOAuth.setUp(self)  # Avoid calling PurchaseTest.setUp().
     self.user = UserProfile.objects.get(pk=2519)
     self.setup_base()
     self.setup_package()
     self.setup_public_id()
     self.list_url = reverse('webpay-prepare-inapp')
 def setUp(self):
     RestOAuth.setUp(self)  # Avoid calling PurchaseTest.setUp().
     self.user = UserProfile.objects.get(pk=2519)
     self.create_switch('marketplace')
     self.list_url = reverse('webpay-prepare')
     self.setup_base()
     self.setup_package()
Exemple #4
0
 def setUp(self):
     self.permission = 'Prices:Edit'
     RestOAuth.setUp(self)
     self.list_url = reverse('price-currency-list')
     self.detail_url = reverse('price-currency-detail', kwargs={'pk': 1})
     self.tier_url = reverse('price-tier-detail', kwargs={'pk': 1})
Exemple #5
0
 def setUp(self):
     RestOAuth.setUp(self)
     self.list_url = reverse('price-currency-list')
     self.detail_url = reverse('price-currency-detail', kwargs={'pk': 1})
     self.tier_url = reverse('price-tier-detail', kwargs={'pk': 1})
Exemple #6
0
 def setUp(self):
     self.permission = "Prices:Edit"
     RestOAuth.setUp(self)
     self.list_url = reverse("price-currency-list")
     self.detail_url = reverse("price-currency-detail", kwargs={"pk": 1})
     self.tier_url = reverse("price-tier-detail", kwargs={"pk": 1})
Exemple #7
0
 def setUp(self):
     RestOAuth.setUp(self)
     self.list_url = reverse("price-currency-list")
     self.detail_url = reverse("price-currency-detail", kwargs={"pk": 1})
     self.tier_url = reverse("price-tier-detail", kwargs={"pk": 1})