File tree 2 files changed +8
-1
lines changed
readthedocs/rtd_tests/tests
2 files changed +8
-1
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 9
9
from readthedocs .projects .models import Project
10
10
11
11
12
+ @pytest .mark .usefixtures ("url_scheme" )
12
13
@override_settings (USE_SUBDOMAIN = False , PRODUCTION_DOMAIN = 'readthedocs.org' )
13
14
class CoreTagsTests (TestCase ):
14
15
fixtures = ['eric' , 'test_data' ]
15
16
16
17
def setUp (self ):
17
18
url_base = '{scheme}://{domain}/docs/pip{{version}}' .format (
18
- scheme = pytest . config . option .url_scheme ,
19
+ scheme = self .url_scheme ,
19
20
domain = settings .PRODUCTION_DOMAIN ,
20
21
)
21
22
You can’t perform that action at this time.
0 commit comments