File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,6 @@ def main(log):
145145
146146 logger = logging .getLogger (__name__ )
147147 logger .debug ("About to run command" ) # TODO: maybe log invocation?
148- pass
149148
150149if __name__ == '__main__' : # no-cov
151150 cli ()
Original file line number Diff line number Diff line change 1+ import logging
12import click
23@click .command (
34 'null-command' ,
45 short_help = "Do nothing (testing)"
56)
67def null_command ():
7- print ("Running null command" )
8+ logger = logging .getLogger (__name__ )
9+ logger .info ("Running null command" )
810
911CLI = null_command
1012SECTION = "Workflow"
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def test_main_log(with_log):
4646 }[with_log ]
4747 expected = {
4848 True : logged_stdout + cmd_stdout ,
49- False : cmd_stdout
49+ False : ""
5050 }[with_log ]
5151 with runner .isolated_filesystem ():
5252 with open ("logging.conf" , mode = 'w' ) as log_conf :
You can’t perform that action at this time.
0 commit comments