Skip to content

Commit

Permalink
test: make init tox test more informative (#1507)
Browse files Browse the repository at this point in the history
This PR was created to find the source of #1508, but it will be useful
for other failures too.
  • Loading branch information
lengau authored Feb 9, 2024
1 parent c1b004f commit 418e8ff
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/integration/commands/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,16 @@ def test_tox_success(new_path, init_command, profile):

init_command.run(create_namespace(profile=profile))

subprocess.run(["tox", "-v"], cwd=new_path, check=True, env=env)
result = subprocess.run(
["tox", "-v"],
cwd=new_path,
env=env,
text=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
check=False,
)
assert result.returncode == 0, "Tox run failed:\n" + result.stdout


@pytest.mark.parametrize("profile", list(commands.init.PROFILES))
Expand Down

0 comments on commit 418e8ff

Please sign in to comment.