Skip to content

Commit ad4c65c

Browse files
committed
correction of type of config to mkdocs
1 parent 397fb2d commit ad4c65c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

readthedocs/rtd_tests/tests/test_doc_builder.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ def test_project_without_mkdocs_yaml(
159159
checkout_path.return_value = tmp_dir
160160
docs_dir.return_value = tmp_dir
161161
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-
162+
python_env = Virtualenv(
163+
version=self.version,
164+
build_env=self.build_env,
165+
config=get_build_config(
166+
{"mkdocs": {"configuration": "mkdocs.yml"}},
167+
))
168168
base_mkdocs = BaseMkdocs(
169169
build_env=self.build_env,
170170
python_env=python_env,

0 commit comments

Comments
 (0)