Skip to content

Commit

Permalink
Revert teardown solution
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed Apr 27, 2018
1 parent d508587 commit c7b5c07
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions readthedocs/rtd_tests/tests/test_subprojects.py
Expand Up @@ -3,6 +3,7 @@
import mock
import django_dynamic_fixture as fixture
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse, set_urlconf
from django.test import TestCase
from django.test.utils import override_settings

Expand Down Expand Up @@ -185,6 +186,12 @@ def setUp(self):
relation.save()
fixture.get(Project, slug='sub_alias', language='ya')

def tearDown(self):
# The urlconf value is preserved for the current thread,
# (is modified to ``readthedocs.core.urls.subdomain``)
# this causes errors when using the reverse function.
# This method call deletes that setting.
# set_urlconf(None)

@override_settings(
PRODUCTION_DOMAIN='readthedocs.org',
Expand Down

0 comments on commit c7b5c07

Please sign in to comment.