MCPcopy Create free account
hub / github.com/mkdocs/mkdocs / test_build_theme_template

Method test_build_theme_template

mkdocs/tests/build_tests.py:225–230  ·  view source on GitHub ↗
(self, mock_build_template, mock_write_file)

Source from the content-addressed store, hash-verified

223 @mock.patch('mkdocs.utils.write_file')
224 @mock.patch('mkdocs.commands.build._build_template', return_value='some content')
225 def test_build_theme_template(self, mock_build_template, mock_write_file):
226 cfg = load_config()
227 env = cfg.theme.get_env()
228 build._build_theme_template('main.html', env, Files([]), cfg, mock.Mock())
229 mock_write_file.assert_called_once()
230 mock_build_template.assert_called_once()
231
232 @mock.patch('mkdocs.utils.write_file')
233 @mock.patch('mkdocs.commands.build._build_template', return_value='some content')

Callers

nothing calls this directly

Calls 3

load_configFunction · 0.90
FilesClass · 0.90
get_envMethod · 0.80

Tested by

no test coverage detected