added --verbose option

this one increases the loglevel to 'debug'
This commit is contained in:
Bastian Venthur
2022-06-20 12:40:11 +02:00
committed by Bastian Venthur
parent 6005369108
commit 138a78357a
3 changed files with 21 additions and 1 deletions

View File

@@ -287,3 +287,11 @@ def test_cli_version(capsys):
# proper version reported
out, _ = capsys.readouterr()
assert blag.__VERSION__ in out
def test_cli_verbose(cleandir, caplog):
blag.main(['build'])
assert 'DEBUG' not in caplog.text
blag.main(['--verbose', 'build'])
assert 'DEBUG' in caplog.text