Skip to content

Commit 938369b

Browse files
committed
fixed issues with mock object
1 parent 188d2ba commit 938369b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/rtd_tests/tests/test_doc_builder.py

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

0 commit comments

Comments
 (0)