Skip to content

Commit 82266ce

Browse files
author
Ignacio Avas
committed
Use temporal dir for tests
1 parent 16778d4 commit 82266ce

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/settings.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# -*- coding: utf-8
22
from __future__ import absolute_import, unicode_literals
33

4+
import os.path
5+
from tempfile import mkdtemp
6+
47
import django
58

69
DEBUG = True
@@ -16,6 +19,14 @@
1619
}
1720
}
1821

22+
tempdir = mkdtemp('request_query_count_tests')
23+
24+
REQUEST_QUERY_COUNT = {
25+
'ENABLE': True,
26+
'DETAIL_PATH': os.path.join(tempdir, 'query_count_detail.json'),
27+
'SUMMARY_PATH': os.path.join(tempdir, 'query_count.json')
28+
}
29+
1930
ROOT_URLCONF = 'tests.urls'
2031

2132
INSTALLED_APPS = [

0 commit comments

Comments
 (0)