thunderbird_accounts.subscription.tests.test_tasks
Classes
|
Base class for Paddle/Celery task unit tests. |
|
Test the actual webhook route |
|
|
|
|
|
|
|
|
|
|
|
- class thunderbird_accounts.subscription.tests.test_tasks.PaddleWebhookViewTestCase(methodName='runTest')[source]
Bases:
APITestCase
Test the actual webhook route
- test_empty_webhook()
Ensure a webhook that doesn’t have any POST data errors out with an unexpected behaviour error.
- test_empty_occurred_at()
Ensure a webhook will raise an unexpected behaviour error if there’s occurred at.
- test_success()
Test the minimum amount of data needed to be passed to celery.
- test_draft_transactions_are_ignored()
Since this transaction.created event is a draft we ignore it.
- test_draft_transactions_arent_ignored_if_they_are_updated()
While we ignore transaction.created with the status of draft, we shouldn’t ignore the unlikely but possible scenario that a transaction updates to a draft.
- class thunderbird_accounts.subscription.tests.test_tasks.PaddleTestCase(methodName='runTest')[source]
Bases:
TestCase
Base class for Paddle/Celery task unit tests.
- class thunderbird_accounts.subscription.tests.test_tasks.TransactionCreatedTaskTestCase(methodName='runTest')[source]
Bases:
PaddleTestCase
- class thunderbird_accounts.subscription.tests.test_tasks.TransactionUpdatedTaskTestCase(methodName='runTest')[source]
- class thunderbird_accounts.subscription.tests.test_tasks.SubscriptionCreatedTaskTestCase(methodName='runTest')[source]
Bases:
PaddleTestCase
- class thunderbird_accounts.subscription.tests.test_tasks.SubscriptionUpdatedTaskTestCase(methodName='runTest')[source]
- class thunderbird_accounts.subscription.tests.test_tasks.ProductCreatedTaskTestCase(methodName='runTest')[source]
Bases:
PaddleTestCase
- class thunderbird_accounts.subscription.tests.test_tasks.ProductUpdatedTaskTestCase(methodName='runTest')[source]
Bases:
ProductCreatedTaskTestCase