Skip to content

Commit

Permalink
Switch from SimpleTestCase.urls to @override_settings, as it's been r…
Browse files Browse the repository at this point in the history
…emoved in Django 1.10
  • Loading branch information
mikebryant committed Oct 28, 2016
1 parent b034ed7 commit 4fe550c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_autoconfig/tests/test_autoconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ def test_django18_templates(self):
)


@test.utils.override_settings(ROOT_URLCONF='django_autoconfig.autourlconf')
class ConfigureUrlsTestCase(test.TestCase):
'''Test the autoconfiguration of the urlconf.'''
urls = 'django_autoconfig.autourlconf'

def create_urlconf(self, apps, **kwargs):
'''Create a urlconf from a list of apps.'''
Expand Down Expand Up @@ -299,9 +299,9 @@ def test_url_prefixes(self):
resolve('/flibble/index/', urlconf=self)


@test.utils.override_settings(ROOT_URLCONF='django_autoconfig.tests.index_view_urlconf')
class IndexViewTestCase(test.TestCase):
'''Test the index view.'''
urls = 'django_autoconfig.tests.index_view_urlconf'

@unittest.skipIf(django.VERSION < (1, 6), 'AUTOCONFIG_INDEX_VIEW needs Django >= 1.6')
def test_index_view(self):
Expand Down

0 comments on commit 4fe550c

Please sign in to comment.