summaryrefslogtreecommitdiff
path: root/tests/djapp/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/djapp/settings.py')
-rw-r--r--tests/djapp/settings.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/djapp/settings.py b/tests/djapp/settings.py
index 787d3f3..c1b79b0 100644
--- a/tests/djapp/settings.py
+++ b/tests/djapp/settings.py
@@ -20,6 +20,16 @@
# THE SOFTWARE.
"""Settings for factory_boy/Django tests."""
+import os
+
+FACTORY_ROOT = os.path.join(
+ os.path.abspath(os.path.dirname(__file__)), # /path/to/fboy/tests/djapp/
+ os.pardir, # /path/to/fboy/tests/
+ os.pardir, # /path/to/fboy
+)
+
+MEDIA_ROOT = os.path.join(FACTORY_ROOT, 'tmp_test')
+
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',