From 093559f6e2e3263b05220f731e2355250540b296 Mon Sep 17 00:00:00 2001 From: spetafree <6402127+spetafree@users.noreply.github.com> Date: Mon, 2 Mar 2020 12:25:57 +0200 Subject: [PATCH] run activation tests with and without prompt --- tests/unit/activation/conftest.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/unit/activation/conftest.py b/tests/unit/activation/conftest.py index 712ee1411..08be64396 100644 --- a/tests/unit/activation/conftest.py +++ b/tests/unit/activation/conftest.py @@ -205,10 +205,13 @@ def raise_on_non_source_class(): return RaiseOnNonSourceCall -@pytest.fixture(scope="session") -def activation_python(tmp_path_factory, special_char_name, current_fastest): +@pytest.fixture(scope="session", params=[True, False]) +def activation_python(request, tmp_path_factory, special_char_name, current_fastest): dest = os.path.join(ensure_text(str(tmp_path_factory.mktemp("activation-tester-env"))), special_char_name) - session = cli_run(["--without-pip", dest, "--prompt", special_char_name, "--creator", current_fastest, "-vv"]) + if request.param: + session = cli_run(["--without-pip", dest, "--prompt", special_char_name, "--creator", current_fastest, "-vv"]) + else: + session = cli_run(["--without-pip", dest, "--creator", current_fastest, "-vv"]) pydoc_test = session.creator.purelib / "pydoc_test.py" pydoc_test.write_text('"""This is pydoc_test.py"""') yield session