render: vega_converter: make rev and filename optional.

Add `FILENAME_FIELD`.
This commit is contained in:
David de la Iglesia Castro
2022-03-28 19:34:05 +02:00
parent ddd6c97f71
commit ead7724824
9 changed files with 29 additions and 20 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ def test_plots_diff_vega(dvc, mocker, capsys, plots_data):
cmd = cli_args.func(cli_args)
mocker.patch("dvc.repo.plots.diff.diff", return_value=plots_data)
mocker.patch(
"dvc_render.VegaRenderer.partial_html",
"dvc_render.VegaRenderer.get_filled_template",
return_value=json.dumps({"this": "is vega json"}),
)
render_mock = mocker.patch("dvc_render.render_html")