Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ env:
global:
- DATABASE_URL='postgres://postgres@localhost/conman'
matrix:
- DJANGO='django~=1.10.0'
- DJANGO='django~=1.11.0'
- DJANGO='django~=2.0.1'
- DJANGO='https://github.com/django/django/tarball/master'

matrix:
allow_failures:
- env: DJANGO='https://github.com/django/django/tarball/master'
- env: DJANGO='django~=2.0.1'
python: 3.4
fast_finish: true

install:
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

### Added

- Added support for Django 2.0.
- Added `Route.get_subclasses()`.
- Added `TemplateHandler`. A simpler handler that requires only a template.
This is the new default for `Route.handler_class`.

### Backwards incompatible

- Dropped support for Django 1.10.
- `CONMAN_ADMIN_ROUTES` setting has been removed. In future, we'll
automatically detect subclasses of `Route` for admin integration.
- Renamed `RouteViewHandler` to `ViewHandler`.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
colour-runner==0.0.5
coverage==4.4.2
dj-database-url==0.4.1
django~=1.11.0
django~=2.0.1
factory_boy==2.9.2
flake8==3.5.0
flake8-commas==1.0.0
Expand Down
4 changes: 3 additions & 1 deletion tests/routes/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from unittest import mock

from django.contrib.admin import site
from django.contrib.admin.widgets import AdminTextInputWidget
from django.test import mock, SimpleTestCase, TestCase
from django.test import SimpleTestCase, TestCase

from conman.routes.admin import RouteParentAdmin
from conman.routes.models import Route
Expand Down
2 changes: 1 addition & 1 deletion tests/routes/test_handlers.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from unittest import mock

from django.core.checks import Warning
from django.core.urlresolvers import clear_url_caches, Resolver404
from django.http import HttpResponse
from django.test import RequestFactory, TestCase
from django.urls import clear_url_caches, Resolver404

from conman.routes.handlers import (
BaseHandler,
Expand Down
2 changes: 1 addition & 1 deletion tests/routes/test_urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.core.urlresolvers import resolve, Resolver404
from django.test import TestCase
from django.urls import resolve, Resolver404

from conman.routes import views

Expand Down
6 changes: 0 additions & 6 deletions tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from incuna_test_utils.testcases.integration import BaseIntegrationTestCase
from incuna_test_utils.testcases.request import BaseRequestTestCase

from .factories import UserFactory
Expand All @@ -7,8 +6,3 @@
class RequestTestCase(BaseRequestTestCase):
"""Add helper methods for working with requests in tests."""
user_factory = UserFactory


class IntegrationTestCase(BaseIntegrationTestCase):
"""Add helper methods for integration tests."""
user_factory = UserFactory