File tree Expand file tree Collapse file tree 3 files changed +25
-10
lines changed
tests/test_project/test_project Expand file tree Collapse file tree 3 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 1- [pytest]
1+ [tool: pytest]
22python_paths = tests/test_project
33testpaths = tests/unit_tests tests/integration_tests
44addopts =
Original file line number Diff line number Diff line change 2323 ],
2424 extras_require = {
2525 'test' : [
26- 'django' ,
27- 'pytest' ,
28- 'pytest-django' ,
29- 'pytest-cov' ,
30- 'pytest-pythonpath'
26+ 'django~=1.8 ' ,
27+ 'pytest~=3.0 ' ,
28+ 'pytest-django~=3.0 ' ,
29+ 'pytest-cov~=2.4 ' ,
30+ 'pytest-pythonpath~=0.7 '
3131 ]
3232 },
3333 classifiers = [
Original file line number Diff line number Diff line change 1818 'django.contrib.staticfiles.finders.AppDirectoriesFinder' ,
1919 'compressor.finders.CompressorFinder'
2020)
21- MIDDLEWARE_CLASSES = ()
22- TEMPLATE_CONTEXT_PROCESSORS = (
23- 'django.template.context_processors.static' ,
24- )
21+ # Django < 1.8
22+ TEMPLATE_CONTEXT_PROCESSORS = [
23+ 'django.template.context_processors.static'
24+ ]
25+ # Django >= 1.8
26+ TEMPLATES = [{
27+ 'BACKEND' : 'django.template.backends.django.DjangoTemplates' ,
28+ 'APP_DIRS' : True ,
29+ 'OPTIONS' : {
30+ 'context_processors' : [
31+ 'django.template.context_processors.static'
32+ ]
33+ }
34+ }]
35+ # Django < 1.10
36+ MIDDLEWARE_CLASSES = []
37+ # Django >= 1.10
38+ MIDDLEWARE = []
39+ # django-compressor settings
2540COMPRESS_ROOT = os .path .join (BASE_DIR , 'compressor' )
2641COMPRESS_PRECOMPILERS = (
2742 ('text/x-scss' , 'compressor_toolkit.precompilers.SCSSCompiler' ),
You can’t perform that action at this time.
0 commit comments