Updates to logging, specifically for unit tests

This commit is contained in:
AlanCoding
2019-01-15 10:42:40 -05:00
parent 4f9901db38
commit cccc038600
6 changed files with 14 additions and 24 deletions

View File

@@ -10,7 +10,6 @@ import os
import re
import subprocess
import stat
import sys
import urllib
import urlparse
import threading
@@ -118,7 +117,7 @@ class RequireDebugTrueOrTest(logging.Filter):
def filter(self, record):
from django.conf import settings
return settings.DEBUG or 'test' in sys.argv
return settings.DEBUG or settings.IS_TESTING()
class IllegalArgumentError(ValueError):