Skip to content

Commit

Permalink
Set default DJANGO_SETTINGS_MODULE in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Jun 5, 2020
1 parent e1b9980 commit e47d27a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import json
import logging
import os
import sys
from copy import deepcopy
from datetime import datetime
Expand All @@ -20,6 +21,7 @@

from djstripe.webhooks import TEST_EVENT_ID

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.settings")
logger = logging.getLogger(__name__)

FUTURE_DATE = datetime(2100, 4, 30, tzinfo=timezone.utc)
Expand Down

0 comments on commit e47d27a

Please sign in to comment.