Skip to content

Commit 2498ebf

Browse files
committed
Remove all warnings from pytest
1 parent 86bfdff commit 2498ebf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readthedocs/rtd_tests/tests/test_core_tags.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@
1414
class CoreTagsTests(TestCase):
1515
fixtures = ['eric', 'test_data']
1616

17+
@pytest.fixture(scope="module", autouse=True)
18+
def url_scheme(self, request):
19+
self.url_scheme = request.config.option.url_scheme
20+
1721
def setUp(self):
1822
url_base = '{scheme}://{domain}/docs/pip{{version}}'.format(
19-
scheme=pytest.config.option.url_scheme,
23+
scheme=self.url_scheme,
2024
domain=settings.PRODUCTION_DOMAIN,
2125
)
2226

0 commit comments

Comments
 (0)