mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 03:41:05 -05:00
Show DeprecationWarning, etc. in runtests
Install default warnings filter in test runs, to avoid python's default suppression of DeprecationWarning and other "intended for developer" warnings. (Avoids need to provide -Wd or -Wall arg to runtests.)
This commit is contained in:
@@ -3,11 +3,13 @@
|
||||
# python runtests.py [anymail.tests.test_x anymail.tests.test_y.SomeTestCase ...]
|
||||
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
from django import setup
|
||||
from django.conf import settings
|
||||
from django.test.runner import DiscoverRunner as TestRunner
|
||||
|
||||
warnings.simplefilter('default') # show DeprecationWarning and other default-ignored warnings
|
||||
|
||||
APP = 'anymail'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user