mirror of
https://github.com/nikdoof/django-eveigb.git
synced 2025-12-13 03:32:16 +00:00
PEP8 cleanup.
This commit is contained in:
@@ -53,4 +53,3 @@ class IGBMiddleware(object):
|
||||
for header, req, typ in EVE_IGB_HEADERS:
|
||||
if header in request.META:
|
||||
setattr(request, header.replace('HTTP_', '').lower(), request.META.get(header))
|
||||
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
# This file mainly exists to allow python setup.py test to work.
|
||||
import os, sys
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_project.settings'
|
||||
test_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),'..')
|
||||
test_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '..')
|
||||
sys.path.insert(0, test_dir)
|
||||
|
||||
from django.test.utils import get_runner
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
def runtests():
|
||||
TestRunner = get_runner(settings)
|
||||
test_runner = TestRunner(verbosity=1, interactive=True)
|
||||
|
||||
Reference in New Issue
Block a user