Skip to content

Instantly share code, notes, and snippets.

@bak1an
Created January 1, 2013 14:28
Show Gist options
  • Select an option

  • Save bak1an/4427871 to your computer and use it in GitHub Desktop.

Select an option

Save bak1an/4427871 to your computer and use it in GitHub Desktop.
diff --git a/tests/test_sqlite.py b/tests/test_sqlite.py
index c04ef97..14c5da6 100644
--- a/tests/test_sqlite.py
+++ b/tests/test_sqlite.py
@@ -22,9 +22,26 @@ DATABASES = {
}
SECRET_KEY = "django_tests_secret_key"
-# To speed up tests under SQLite we use the MD5 hasher as the default one.
+# To speed up tests under SQLite we use the MD5 hasher as the default one.
# This should not be needed under other databases, as the relative speedup
# is only marginal there.
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher',
)
+
+LOGGING = {
+ 'version': 1,
+ 'handlers': {
+ 'console':{
+ 'level': 'DEBUG',
+ 'class': 'logging.StreamHandler',
+ }
+ },
+ 'loggers': {
+ 'py.warnings': {
+ 'handlers': ['console'],
+ 'propagate': True,
+ 'level': 'WARNING',
+ }
+ }
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment