Closed stdevel closed 6 years ago
To fix this, the following lines need to be added to all CLI module files (authconfig.py
, maintenance.py
, parameters.py
, populate.py
, report.py
, snapshot.py
):
if __name__ == "__main__":
cli()
Investigating on branch feature-cli_execute-issue97
.
Fixed in commit 2ed5216ec9f9d1dfc0bd21265ed60f33c4706e2c.
Currently, modules such as
katprep.authconfig
cannot be executed directly (e.g. within pytest or coverage).