Skip to content

Commit 4f08404

Browse files
committed
Fix test
1 parent 709545d commit 4f08404

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readthedocs/rtd_tests/tests/test_doc_builder.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,10 @@ def test_get_theme_name_with_feature_flag(self, checkout_path, run):
350350
self.assertEqual(builder.get_theme_name({}), 'readthedocs')
351351
with patch('readthedocs.doc_builder.backends.mkdocs.yaml') as mock_yaml:
352352
with patch('readthedocs.doc_builder.backends.mkdocs.MkdocsHTML.load_yaml_config') as mock_load_yaml_config:
353-
mock_load_yaml_config.return_value = {'site_name': self.project.name}
353+
mock_load_yaml_config.return_value = {
354+
'site_name': self.project.name,
355+
'docs_dir': tmpdir,
356+
}
354357
builder.append_conf()
355358

356359
mock_yaml.safe_dump.assert_called_once_with(
@@ -374,6 +377,7 @@ def test_get_theme_name_with_feature_flag(self, checkout_path, run):
374377
mock_load_yaml_config.return_value = {
375378
'site_name': self.project.name,
376379
'theme': 'customtheme',
380+
'docs_dir': tmpdir,
377381
}
378382
builder.append_conf()
379383

0 commit comments

Comments
 (0)