mirror of
https://github.com/nikdoof/django-eveigb.git
synced 2025-12-22 05:09:20 +00:00
Fix Travis test config, and a few minor PEP8 violations.
This commit is contained in:
@@ -2,9 +2,7 @@ language: python
|
||||
python:
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
- "3.2"
|
||||
env:
|
||||
- DJANGO=1.3.7
|
||||
- DJANGO=1.4.8
|
||||
- DJANGO=1.5.4
|
||||
install:
|
||||
@@ -13,6 +11,6 @@ install:
|
||||
- pip install -q mock --use-mirrors
|
||||
- pip install -q pep8 --use-mirrors
|
||||
before_script:
|
||||
- "pep8 --exclude=migrations --ignore=E501,E225 src"
|
||||
- "pep8 --exclude=migrations --ignore=E501,E225 eveigb"
|
||||
script:
|
||||
- python setup.py test
|
||||
@@ -3,4 +3,4 @@ def igb(request):
|
||||
'is_igb': request.is_igb,
|
||||
'is_igb_trusted': request.is_igb_trusted,
|
||||
}
|
||||
return ctx
|
||||
return ctx
|
||||
|
||||
@@ -1 +1 @@
|
||||
from django.db import models
|
||||
from django.db import models
|
||||
|
||||
@@ -10,4 +10,4 @@ def eve_mail_link(context):
|
||||
return {
|
||||
'igb': context['is_igb'],
|
||||
'gate_base': getattr(settings, 'EVE_GATE_BASE', 'https://gate.eveonline.com')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,4 +131,4 @@ class IGBMiddlewareTest(TestCase):
|
||||
})
|
||||
self.im.process_request(request)
|
||||
self.assertEqual(request.is_igb, False)
|
||||
self.assertEqual(request.is_igb_trusted, False)
|
||||
self.assertEqual(request.is_igb_trusted, False)
|
||||
|
||||
Reference in New Issue
Block a user