Fix Travis test config, and a few minor PEP8 violations.

This commit is contained in:
2013-10-13 21:07:02 +01:00
parent ea30c54c1d
commit 9360c6506a
5 changed files with 5 additions and 7 deletions

View File

@@ -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

View File

@@ -3,4 +3,4 @@ def igb(request):
'is_igb': request.is_igb,
'is_igb_trusted': request.is_igb_trusted,
}
return ctx
return ctx

View File

@@ -1 +1 @@
from django.db import models
from django.db import models

View File

@@ -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')
}
}

View File

@@ -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)