tests: plots: fix plots call (#5183)

This commit is contained in:
Paweł Redzyński
2020-12-30 22:59:32 +02:00
committed by GitHub
parent 34ed545d64
commit c28e671f47
+2 -2
View File
@@ -716,7 +716,7 @@ def test_show_malformed_plots(tmp_dir, scm, dvc, caplog):
tmp_dir.gen("plot.json", '[{"m":1]')
with pytest.raises(NoMetricsParsedError):
dvc.metrics.show(targets=["plot.json"])
dvc.plots.show(targets=["plot.json"])
def test_plots_show_no_target(tmp_dir, dvc):
@@ -726,7 +726,7 @@ def test_plots_show_no_target(tmp_dir, dvc):
def test_show_no_plots_files(tmp_dir, dvc, caplog):
with pytest.raises(NoMetricsFoundError):
dvc.metrics.show()
dvc.plots.show()
@pytest.mark.parametrize("clear_before_run", [True, False])