thunderbird_accounts.subscription.tests.test_tasks
Classes
|
|
|
Base class for Paddle/Celery task unit tests. |
|
Test the actual webhook route |
|
|
|
|
Unit tests for MailchimpClient.remove_tag_from_member. |
|
|
|
|
|
|
|
|
|
|
- class thunderbird_accounts.subscription.tests.test_tasks.PaddleWebhookViewTestCase(methodName='runTest')[source]
Bases:
APITestCaseTest 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:
TestCaseBase 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.SubscriptionUpdatedToCancelledTaskTestCase(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
- class thunderbird_accounts.subscription.tests.test_tasks.UpdateThundermailQuotaTestCase(methodName='runTest')[source]
Bases:
TestCase
- class thunderbird_accounts.subscription.tests.test_tasks.AddSubscriberToMailchimpList(methodName='runTest')[source]
Bases:
TestCase- test_success_create(request_mock: MagicMock)
Ensure that given a subscribed user with a valid stalwart email that they will successfully be added to the mailchimp list
- test_success_update(request_mock: MagicMock)
Ensure that given a subscribed user with a valid stalwart email that they will successfully have the proper tag added to their entry.
- class thunderbird_accounts.subscription.tests.test_tasks.RemoveTagFromMailchimpMemberTestCase(methodName='runTest')[source]
Bases:
TestCaseUnit tests for MailchimpClient.remove_tag_from_member.
- test_member_not_found_is_noop(request_mock: MagicMock)
If the member does not exist in Mailchimp, return silently without POSTing.
- test_tag_absent_is_noop(request_mock: MagicMock)
If the member exists but does not have the tag, return silently without POSTing.