Is this expected?
It feels like a missing feature, so I'd be happy to provide it giving some pointers.
My test:
def test_cli_run_with_args(runner):
result = runner.invoke(cli.main, ['run', 'printf', '%s', '--'])
…
And in the run command I have:
logger.warn('The temporary profile file (%s) has not been created.',
profile_file_name)
Where logger is logger = logging.getLogger('covimerage'), which gets setup in __init__.py:
logger = logging.getLogger('covimerage')
logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler(sys.stdout))
When run manually the warning shows up.
It also shows up in pytest's Captured stdout call.
Is this expected?
It feels like a missing feature, so I'd be happy to provide it giving some pointers.
My test:
And in the
runcommand I have:Where
loggerislogger = logging.getLogger('covimerage'), which gets setup in__init__.py:When run manually the warning shows up.
It also shows up in pytest's
Captured stdout call.