File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
readthedocs/rtd_tests/tests Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -159,15 +159,12 @@ def test_project_without_mkdocs_yaml(
159
159
checkout_path .return_value = tmp_dir
160
160
docs_dir .return_value = tmp_dir
161
161
get_mkdocs_yaml_path .side_effect = MkDocsYAMLParseError
162
- mock_config = mock .Mock ()
163
- mock_config .mkdocs = mock .Mock (configuration = "mkdocs.yml" )
162
+ mock_config = mock .MagicMock ()
163
+ mock_config .mkdocs .configuration = "mkdocs.yml"
164
+
165
+ python_env = mock .MagicMock ()
166
+ python_env .config = mock_config
164
167
165
- load_yaml_config .return_value = mock_config
166
- python_env = Virtualenv (
167
- version = self .version ,
168
- build_env = self .build_env ,
169
- config = get_build_config ({}, validate = True ),
170
- )
171
168
base_mkdocs = BaseMkdocs (
172
169
build_env = self .build_env ,
173
170
python_env = python_env ,
You can’t perform that action at this time.
0 commit comments