Stripe checkout #104411
@ -174,7 +174,7 @@ class TestCharacterVersionDownload(TestCase):
|
|||||||
|
|
||||||
def test_can_download_non_free_when_subscribed(self):
|
def test_can_download_non_free_when_subscribed(self):
|
||||||
user = UserFactory()
|
user = UserFactory()
|
||||||
SubscriptionFactory(user=user, status='active')
|
SubscriptionFactory(customer=user.customer, status='active')
|
||||||
character_version = CharacterVersionFactory(is_free=False)
|
character_version = CharacterVersionFactory(is_free=False)
|
||||||
|
|
||||||
self.client.force_login(user)
|
self.client.force_login(user)
|
||||||
@ -222,7 +222,7 @@ class TestCharacterShowcaseDownload(TestCase):
|
|||||||
|
|
||||||
def test_can_download_non_free_when_subscribed(self):
|
def test_can_download_non_free_when_subscribed(self):
|
||||||
user = UserFactory()
|
user = UserFactory()
|
||||||
SubscriptionFactory(user=user, status='active')
|
SubscriptionFactory(customer=user.customer, status='active')
|
||||||
character_showcase = CharacterShowcaseFactory(is_free=False)
|
character_showcase = CharacterShowcaseFactory(is_free=False)
|
||||||
|
|
||||||
self.client.force_login(user)
|
self.client.force_login(user)
|
||||||
|
Loading…
Reference in New Issue
Block a user