We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 397fb2d commit ad4c65cCopy full SHA for ad4c65c
readthedocs/rtd_tests/tests/test_doc_builder.py
@@ -159,12 +159,12 @@ def test_project_without_mkdocs_yaml(
159
checkout_path.return_value = tmp_dir
160
docs_dir.return_value = tmp_dir
161
get_mkdocs_yaml_path.side_effect = MkDocsYAMLParseError
162
- mock_config = mock.MagicMock()
163
- mock_config.mkdocs.configuration = "mkdocs.yml"
164
-
165
- python_env = mock.MagicMock()
166
- python_env.config = mock_config
167
+ python_env = Virtualenv(
+ version=self.version,
+ build_env=self.build_env,
+ config=get_build_config(
+ {"mkdocs": {"configuration": "mkdocs.yml"}},
+ ))
168
base_mkdocs = BaseMkdocs(
169
build_env=self.build_env,
170
python_env=python_env,
0 commit comments