dtcenter / METplus

Python scripting infrastructure for MET tools.
https://metplus.readthedocs.io
Apache License 2.0
98 stars 37 forks source link

feature #2253 fix empty pytest logs #2485

Closed John-Sharples closed 8 months ago

John-Sharples commented 8 months ago

Pull Request Testing

Pull Request Checklist

See the METplus Workflow for details.

coveralls commented 8 months ago

Pull Request Test Coverage Report for Build 7793212853


Totals Coverage Status
Change from base Build 7700714846: 0.0%
Covered Lines: 8508
Relevant Lines: 9374

💛 - Coveralls
John-Sharples commented 8 months ago

@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.