Django1.6 test fixes, adding Django1.8 to test suite

This commit is contained in:
theodore.therone@gmail.com 2015-04-09 04:57:36 +00:00
parent bc617498fa
commit c01d1c5f49
3 changed files with 5 additions and 1 deletions

View file

@ -7,6 +7,7 @@ python:
env:
- DJANGO=1.6
- DJANGO=1.7
- DJANGO=1.8
install:
# command to install dependencies
- "pip install coveralls"
@ -20,5 +21,7 @@ matrix:
exclude:
- python: "2.6"
env: DJANGO=1.7
- python: "2.6"
env: DJANGO=1.8
after_success:
- coveralls

View file

@ -97,7 +97,7 @@ class NotificationTestPages(TestCase):
def login(self,username,password):
self.logout()
response = self.client.post(reverse('admin:login'), {'username': username, 'password': password})
response = self.client.post(reverse('login'), {'username': username, 'password': password})
self.assertEqual(response.status_code,302)
return response

View file

@ -6,6 +6,7 @@ from django.contrib import admin
import notifications
urlpatterns = patterns('',
url(r'^login/$', 'django.contrib.auth.views.login', name='login'), # needed for Django 1.6 tests
url(r'^admin/', include(admin.site.urls)),
url(r'^', include(notifications.urls)),
)