Closed John-Sharples closed 8 months ago
Totals | |
---|---|
Change from base Build 7700714846: | 0.0% |
Covered Lines: | 8508 |
Relevant Lines: | 9374 |
@georgemccabe
The mock simply calls config.logger
with whatever args were passed to the mock, so it should just use the format specified by config. I had a quick dig to see where the formatting was coming from for the tests. It appears differnet tests use different configs, which are in several places within internal/tests/pytests/utils
.
For example, changing this LOG_LINE_FORMAT changed the log output for tests using that config file.
Pull Request Testing
[x] Describe testing already performed for these changes: I have run the tests with and without this change to compare log file outputs. Appears to now write logged content to file.
[x] Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions: Run tests and check output
[x] Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? Yes
[x] Do these changes include sufficient testing updates? Yes
[x] Will this PR result in changes to the test suite? Yes If yes, describe the new output and/or changes to the existing output:
[x] Please complete this pull request review by [Fill in date].
Pull Request Checklist
See the METplus Workflow for details.