~roadmr/canonical-identity-provider/fix-deprecation-warnings-1

« back to all changes in this revision

Viewing changes to src/identityprovider/tests/test_routers.py

  • Committer: Tom Wardill
  • Date: 2018-02-14 14:05:59 UTC
  • mfrom: (1602 work)
  • mto: (1597.1.44 django-1.10)
  • mto: This revision was merged to the branch mainline in revision 1603.
  • Revision ID: tom.wardill@canonical.com-20180214140559-ow5txzwy46nopws2
Merge flake8 changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright 2013 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
 
from django.db.utils import DEFAULT_DB_ALIAS
5
4
from django.conf import settings
6
5
from django.contrib.sessions.models import Session
7
6
from django.core.exceptions import ImproperlyConfigured
 
7
from django.db.utils import DEFAULT_DB_ALIAS
8
8
from django.test import SimpleTestCase, ignore_warnings
9
9
 
10
10
from identityprovider.models.emailaddress import EmailAddress
11
11
from identityprovider.models.person import Person
12
 
from identityprovider.routers import ReadOnlyModeRouter, NOP_DB_ALIAS
 
12
from identityprovider.routers import NOP_DB_ALIAS, ReadOnlyModeRouter
13
13
 
14
14
 
15
15
@ignore_warnings(