aboutsummaryrefslogtreecommitdiffstats
path: root/wkhtmltopdf/test_settings.py
diff options
context:
space:
mode:
authormattack108 <matt.lenc@gmail.com>2013-01-15 15:48:39 +0000
committermattack108 <matt.lenc@gmail.com>2013-01-15 15:48:39 +0000
commit9b191bb932a3a7d6ebeb61be31ba666e8f8a9d9e (patch)
treecf6da5284ba72dbf224689766b5b5d042e904bf5 /wkhtmltopdf/test_settings.py
parent813537e4adb811f10011349ce06bee0de0775dc6 (diff)
downloaddjango-wkhtmltopdf-9b191bb932a3a7d6ebeb61be31ba666e8f8a9d9e.tar.gz
django-wkhtmltopdf-9b191bb932a3a7d6ebeb61be31ba666e8f8a9d9e.tar.bz2
django-wkhtmltopdf-9b191bb932a3a7d6ebeb61be31ba666e8f8a9d9e.zip
Fix tests and add new ones for show_content_in_browser feature
Diffstat (limited to 'wkhtmltopdf/test_settings.py')
-rw-r--r--wkhtmltopdf/test_settings.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/wkhtmltopdf/test_settings.py b/wkhtmltopdf/test_settings.py
index 37d086f..8b2ec62 100644
--- a/wkhtmltopdf/test_settings.py
+++ b/wkhtmltopdf/test_settings.py
@@ -1,5 +1,9 @@
+import os
+
DEBUG = True
+DIRNAME = os.path.abspath(os.path.dirname(__file__))
+
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
@@ -7,10 +11,22 @@ DATABASES = {
}
}
-MEDIA_URL = ''
-STATIC_URL = ''
+# MEDIA_URL = '/media/'
+# MEDIA_ROOT = '/tmp/media'
+# STATIC_URL = '/static/'
+# STATIC_ROOT = '/tmp/static'
+MEDIA_ROOT = os.path.join(DIRNAME, 'media')
+MEDIA_URL = '/media/'
+STATIC_ROOT = os.path.join(DIRNAME, 'static')
+STATIC_URL = '/static/'
INSTALLED_APPS = (
'wkhtmltopdf.tests',
'wkhtmltopdf',
)
+
+TEMPLATE_DIRS = [
+ os.path.join(DIRNAME, 'testproject', 'tests', 'templates'),
+]
+
+WKHTMLTOPDF_DEBUG = DEBUG