-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from luzfcb/patch-1
fix compatibility of test suit with django 1.10
- Loading branch information
Showing
9 changed files
with
122 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,50 @@ | ||
language: python | ||
services: sqlite | ||
env: | ||
- DJANGO='django>=1.5,<1.6' | ||
- DJANGO='django>=1.6,<1.7' | ||
- DJANGO='django>=1.7,<1.8' | ||
- DJANGO='django>=1.8,<1.9' | ||
- DJANGO='django>=1.9,<1.10' | ||
python: | ||
- 3.5 | ||
- 3.4 | ||
- 3.3 | ||
- 3.2 | ||
- 2.7 | ||
install: | ||
- pip install $DJANGO | ||
- python setup.py install | ||
- pip install factory_boy mock pytest-django | ||
script: py.test tests/ | ||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
before_cache: | ||
- rm -f $HOME/.cache/pip/log/debug.log | ||
matrix: | ||
exclude: | ||
- python: 3.2 | ||
env: DJANGO='django>=1.8,<1.9' | ||
- python: 3.2 | ||
env: DJANGO='django>=1.9,<1.10' | ||
- python: 3.3 | ||
env: DJANGO='django>=1.8,<1.9' | ||
- python: 3.3 | ||
env: DJANGO='django>=1.9,<1.10' | ||
- python: 3.4 | ||
env: DJANGO='django>=1.4,<1.5' | ||
- python: 3.5 | ||
env: DJANGO='django>=1.5,<1.6' | ||
- python: 3.5 | ||
env: DJANGO='django>=1.6,<1.7' | ||
- python: 3.5 | ||
env: DJANGO='django>=1.7,<1.8' | ||
include: | ||
- python: 2.7 | ||
env: TOX_ENV=py27-django15 | ||
- python: 2.7 | ||
env: TOX_ENV=py27-django16 | ||
- python: 2.7 | ||
env: TOX_ENV=py27-django17 | ||
- python: 2.7 | ||
env: TOX_ENV=py27-django18 | ||
- python: 3.3 | ||
env: TOX_ENV=py33-django15 | ||
- python: 3.3 | ||
env: TOX_ENV=py33-django16 | ||
- python: 3.3 | ||
env: TOX_ENV=py33-django17 | ||
- python: 3.3 | ||
env: TOX_ENV=py33-django18 | ||
- python: 3.4 | ||
env: TOX_ENV=py34-django15 | ||
- python: 3.4 | ||
env: TOX_ENV=py34-django16 | ||
- python: 3.4 | ||
env: TOX_ENV=py34-django17 | ||
- python: 3.4 | ||
env: TOX_ENV=py34-django18 | ||
- python: 3.4 | ||
env: TOX_ENV=py34-django19 | ||
- python: 3.4 | ||
env: TOX_ENV=py34-django110 | ||
- python: 3.5 | ||
env: TOX_ENV=py35-django18 | ||
- python: 3.5 | ||
env: TOX_ENV=py35-django19 | ||
- python: 3.5 | ||
env: TOX_ENV=py35-django110 | ||
|
||
|
||
script: tox -e $TOX_ENV | ||
|
||
install: | ||
- pip install pip setuptools wheel -U | ||
- pip install tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from __future__ import absolute_import | ||
|
||
from . import views | ||
from .compat import patterns, url | ||
from .compat import url, patterns_compat | ||
|
||
|
||
urlpatterns = patterns( | ||
'', | ||
urlpatterns = [ | ||
# CanonicalSlugDetailMixin namespace tests | ||
url(r'^article/(?P<pk>\d+)-(?P<slug>[\w-]+)/$', | ||
views.CanonicalSlugDetailView.as_view(), | ||
name="namespaced_article"), | ||
) | ||
] | ||
|
||
urlpatterns = patterns_compat(urlpatterns) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters