Skip to content

Commit

Permalink
Removed unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
daavoo committed Oct 22, 2021
1 parent 4b4eac3 commit f41ba76
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/unit/command/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,26 +252,3 @@ def test_should_call_render(tmp_dir, mocker, capsys, plots_data, output):
render_mock.assert_called_once_with(
cmd.repo, plots_data, path=tmp_dir / output, html_template_path=None
)


def test_wsl_open(tmp_dir, mocker, capsys, plots_data, output):
cli_args = parse_args(
["plots", "diff", "--targets", "plots.csv", "--out", output]
)
cmd = cli_args.func(cli_args)
mocker.patch("dvc.repo.plots.diff.diff", return_value=plots_data)

output = output or "dvc_plots"
index_path = tmp_dir / output / "index.html"
render_mock = mocker.patch(
"dvc.command.plots.render", return_value=index_path
)

assert cmd.run() == 0

out, _ = capsys.readouterr()
assert index_path.as_uri() in out

render_mock.assert_called_once_with(
cmd.repo, plots_data, path=tmp_dir / output, html_template_path=None
)

0 comments on commit f41ba76

Please sign in to comment.