mirror of
https://github.com/venthur/blag.git
synced 2025-11-25 12:42:41 +00:00
added --verbose option
this one increases the loglevel to 'debug'
This commit is contained in:
committed by
Bastian Venthur
parent
6005369108
commit
138a78357a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user