(self, mock_build_template, mock_write_file)
| 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') |
nothing calls this directly
no test coverage detected