File tree 2 files changed +7
-4
lines changed
readthedocs/rtd_tests/tests
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ def pytest_configure(config):
47
47
def settings_modification (settings ):
48
48
settings .CELERY_ALWAYS_EAGER = True
49
49
50
+
50
51
@pytest .fixture
51
52
def api_client ():
52
53
return APIClient ()
54
+
55
+
56
+ @pytest .fixture (scope = "class" )
57
+ def url_scheme (request ):
58
+ request .cls .url_scheme = request .config .option .url_scheme
Original file line number Diff line number Diff line change 10
10
from readthedocs .projects .models import Project
11
11
12
12
13
+ @pytest .mark .usefixtures ("url_scheme" )
13
14
@override_settings (USE_SUBDOMAIN = False , PRODUCTION_DOMAIN = 'readthedocs.org' )
14
15
class CoreTagsTests (TestCase ):
15
16
fixtures = ['eric' , 'test_data' ]
16
17
17
- @pytest .fixture (autouse = True )
18
- def url_scheme (self , request ):
19
- self .url_scheme = request .config .option .url_scheme
20
-
21
18
def setUp (self ):
22
19
url_base = '{scheme}://{domain}/docs/pip{{version}}' .format (
23
20
scheme = self .url_scheme ,
You can’t perform that action at this time.
0 commit comments