From 4f0840487e8b0dea9ef8425c9db2f285767029ec Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Thu, 17 Dec 2020 19:00:58 -0500 Subject: [PATCH] Fix test --- readthedocs/rtd_tests/tests/test_doc_builder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/readthedocs/rtd_tests/tests/test_doc_builder.py b/readthedocs/rtd_tests/tests/test_doc_builder.py index 106a48fb037..95ffba72c0e 100644 --- a/readthedocs/rtd_tests/tests/test_doc_builder.py +++ b/readthedocs/rtd_tests/tests/test_doc_builder.py @@ -350,7 +350,10 @@ def test_get_theme_name_with_feature_flag(self, checkout_path, run): self.assertEqual(builder.get_theme_name({}), 'readthedocs') with patch('readthedocs.doc_builder.backends.mkdocs.yaml') as mock_yaml: with patch('readthedocs.doc_builder.backends.mkdocs.MkdocsHTML.load_yaml_config') as mock_load_yaml_config: - mock_load_yaml_config.return_value = {'site_name': self.project.name} + mock_load_yaml_config.return_value = { + 'site_name': self.project.name, + 'docs_dir': tmpdir, + } builder.append_conf() mock_yaml.safe_dump.assert_called_once_with( @@ -374,6 +377,7 @@ def test_get_theme_name_with_feature_flag(self, checkout_path, run): mock_load_yaml_config.return_value = { 'site_name': self.project.name, 'theme': 'customtheme', + 'docs_dir': tmpdir, } builder.append_conf()