mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-05-23 19:55:51 +00:00
Django1.6 test fixes, adding Django1.8 to test suite
This commit is contained in:
parent
bc617498fa
commit
c01d1c5f49
3 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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)),
|
||||
)
|
||||
Loading…
Reference in a new issue