Skip to content

Commit

Permalink
added python3 and django1.9 tests in travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
jahan01 committed Feb 7, 2016
1 parent 4ee2737 commit f582c20
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
language: python
services: sqlite
env:
- DJANGO='django==1.8'
- DJANGO='django>=1.8,<1.9'
- DJANGO='django>=1.9,<1.10'
python:
- 2.7
- 3.2
- 3.3
- 3.4
- 3.5
install:
- pip install $DJANGO
- python setup.py install
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,15 @@ def readme():
"Environment :: Web Environment",
"Environment :: Plugins",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Framework :: Django",
"Framework :: Django :: 1.7",
"Framework :: Django :: 1.8",
"Framework :: Django :: 1.9",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
],
)
)
2 changes: 1 addition & 1 deletion tests/testproject/testapp/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def setUp(self):
def check(self, param, prev, next):
request_url = self.view_url + param
response = self.client.get(request_url)
self.assertContains(response, "Page dict: {'prev': '%s', 'next': '%s'}" % (prev, next))
self.assertEqual(response.content.decode("utf-8"), "Page dict:- next:%s, prev:%s" % (next, prev))

def check_not_found(self, param):
request_url = self.view_url + param
Expand Down
2 changes: 1 addition & 1 deletion tests/testproject/testapp/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ class PaginatedView(PaginationMixin, ListView):
def get(self, request, *args, **kwargs):
listview = super(PaginatedView, self).get(request, *args, **kwargs)
page_dict = listview.context_data['page_dict']
return HttpResponse("Page dict: %s" % page_dict)
return HttpResponse("Page dict:- next:%s, prev:%s" % (page_dict['next'], page_dict['prev']))

0 comments on commit f582c20

Please sign in to comment.