From 17a71d601142c754d89f6b73e23efe7ca484cf9e Mon Sep 17 00:00:00 2001 From: David de la Iglesia Castro Date: Fri, 10 Feb 2023 10:22:21 +0100 Subject: [PATCH] plots: Rename `template_path` to `html_template`. --- dvc/commands/plots.py | 2 +- tests/unit/command/test_plots.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/commands/plots.py b/dvc/commands/plots.py index 75a36c315..cc7fea625 100644 --- a/dvc/commands/plots.py +++ b/dvc/commands/plots.py @@ -150,7 +150,7 @@ class CmdPlots(CmdBase): render_html( renderers=renderers, output_file=output_file, - template_path=self._html_template_path(), + html_template=self._html_template_path(), ) ui.write(output_file.as_uri()) diff --git a/tests/unit/command/test_plots.py b/tests/unit/command/test_plots.py index f6a543f4b..acd44ab67 100644 --- a/tests/unit/command/test_plots.py +++ b/tests/unit/command/test_plots.py @@ -285,7 +285,7 @@ def test_should_call_render(tmp_dir, mocker, capsys, plots_data, output): render_mock.assert_called_once_with( renderers=renderers, output_file=Path(tmp_dir / output / "index.html"), - template_path=None, + html_template=None, )