Skip to content

Commit

Permalink
Run tests verbosely by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
bwoodsend committed Oct 26, 2023
1 parent f8360ab commit 63ce288
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion polycotylus/_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def lazy_run(base, command, **kwargs):


def _verbosity():
return int(os.environ.get("POLYCOTYLUS_VERBOSITY", 0))
return int(os.environ.get("POLYCOTYLUS_VERBOSITY", 2))


class Error(Exception):
Expand Down
3 changes: 2 additions & 1 deletion tests/test_docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def test_verbosity(monkeypatch, capsys, tmp_path):

monkeypatch.delenv("POLYCOTYLUS_VERBOSITY")
run()
assert capsys.readouterr().out == ""
out = capsys.readouterr().out
assert output_re.findall(out)

_docker.build("Dockerfile", tmp_path, verbosity=1)
out = capsys.readouterr().out
Expand Down

0 comments on commit 63ce288

Please sign in to comment.