From ea7b19f18148c92299689491df1eec6a4f2733e8 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 15 Sep 2020 16:19:17 +0200 Subject: [PATCH] Use --print-deps-to in tests IMO it's unnecessary to parametrize & test both forms. --- tests/test_integration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index c876d54..8740e0e 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -155,7 +155,7 @@ def test_allenvs_print_deps(print_deps_stdout_arg): @pytest.mark.parametrize("toxenv", ["py36", "py37", "py38", "py39"]) def test_print_deps_to_file(toxenv, tmp_path): depspath = tmp_path / "deps" - result = tox("-e", toxenv, "--print-deps-to-file", str(depspath)) + result = tox("-e", toxenv, "--print-deps-to", str(depspath)) assert depspath.read_text().splitlines() == ["six", "py"] expected = textwrap.dedent( f""" @@ -169,7 +169,7 @@ def test_print_deps_to_file(toxenv, tmp_path): def test_allenvs_print_deps_to_file(tmp_path): depspath = tmp_path / "deps" - result = tox("--print-deps-to-file", str(depspath)) + result = tox("--print-deps-to", str(depspath)) assert depspath.read_text().splitlines() == ["six", "py"] * 4 expected = textwrap.dedent( """ @@ -187,7 +187,7 @@ def test_allenvs_print_deps_to_file(tmp_path): def test_allenvs_print_deps_to_existing_file(tmp_path): depspath = tmp_path / "deps" depspath.write_text("nada") - result = tox("--print-deps-to-file", str(depspath)) + result = tox("--print-deps-to", str(depspath)) lines = depspath.read_text().splitlines() assert "nada" not in lines assert "six" in lines @@ -199,7 +199,7 @@ def test_print_deps_only_print_deps_to_file_are_mutually_exclusive(): "-e", NATIVE_TOXENV, "--print-deps-only", - "--print-deps-to-file", + "--print-deps-to", "foobar", check=False, )