Fixed flake8 problems

This commit is contained in:
Raphael Michel
2016-05-04 18:35:10 +02:00
parent 3ae13ce0ed
commit 499cf6c5c8
2 changed files with 5 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ django-debug-toolbar>=1.3.0,<2.0
# Testing requirements
pyflakes
pep8==1.5.7 # exact requirement by flake8 2.4.0
pyflakes==1.1.0 # later version causes problems currently
pep8-naming
flake8
coveralls

View File

@@ -1,10 +1,12 @@
import os
from pretix.settings import * # NOQA
TEST_DIR = os.path.dirname(__file__)
TEMPLATES[0]['DIRS'].append(os.path.join(TEST_DIR, 'templates'))
TEMPLATES[0]['DIRS'].append(os.path.join(TEST_DIR, 'templates')) # NOQA
INSTALLED_APPS.append('tests.testdummy')
INSTALLED_APPS.append('tests.testdummy') # NOQA
MEDIA_ROOT = os.path.join(TEST_DIR, 'media')