Skip to content

Commit a22c1f1

Browse files
committed
fixing config error none
1 parent d88ef56 commit a22c1f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

readthedocs/rtd_tests/tests/test_doc_builder.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,10 @@ 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-
load_yaml_config.return_value = mock.Mock()
163-
load_yaml_config.return_value.mkdocs = mock.Mock(configuration="mkdocs.yml")
162+
mock_config = mock.Mock()
163+
mock_config.mkdocs = mock.Mock(configuration="mkdocs.yml")
164+
165+
load_yaml_config.return_value = mock_config
164166
python_env = Virtualenv(
165167
version=self.version,
166168
build_env=self.build_env,

0 commit comments

Comments
 (0)