mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Run integration tests just once per test run.
This commit is contained in:
parent
68d3fae446
commit
78612f34a1
2 changed files with 9 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
python: 3.6
|
python: 3.6
|
||||||
- env: TOX_ENV=django30-py37
|
- env: TOX_ENV=django30-py37
|
||||||
python: 3.7
|
python: 3.7
|
||||||
- env: TOX_ENV=django30-py38
|
- env: TOX_ENV=django30-py38 INTEGRATION=1
|
||||||
python: 3.8
|
python: 3.8
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,14 @@ class EmailMessageTestCase(TestCase):
|
||||||
|
|
||||||
self.mailbox = Mailbox.objects.create(from_email='from@example.com')
|
self.mailbox = Mailbox.objects.create(from_email='from@example.com')
|
||||||
|
|
||||||
|
integration_testing_enabled = os.environ.get('INTEGRATION')
|
||||||
|
if not (
|
||||||
|
integration_testing_enabled and int(integration_testing_enabled)
|
||||||
|
):
|
||||||
|
self.skipTest(
|
||||||
|
"Integration tests skipped; to enable, set INTEGRATION=1"
|
||||||
|
)
|
||||||
|
|
||||||
self.test_account = os.environ.get('EMAIL_ACCOUNT')
|
self.test_account = os.environ.get('EMAIL_ACCOUNT')
|
||||||
self.test_password = os.environ.get('EMAIL_PASSWORD')
|
self.test_password = os.environ.get('EMAIL_PASSWORD')
|
||||||
self.test_smtp_server = os.environ.get('EMAIL_SMTP_SERVER')
|
self.test_smtp_server = os.environ.get('EMAIL_SMTP_SERVER')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue