Skip to content

Commit

Permalink
run activation tests with and without prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
spetafree committed Mar 2, 2020
1 parent fe3b321 commit 093559f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/unit/activation/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 093559f

Please sign in to comment.