I've read the various questions about pytest-catchlog etc but I'm none the wiser - how exactly does Pytest do logging?
I have a top-level Python app that creates a log file. There are a number of modules used by the app and their logging also ends up in the log file. But I want to unit test these modules and when I write a Pytest unit test and run it, there is no logging anywhere from the modules.
I've seen talk about 'pytest-catchlog' but it talks about stdout and the like and I don't even see my logs appearing on screen. So how is Pytest generating (or not) logs and how can I tap in and get the log file that I want?
-vvand-sto increase the verbosity and capture logs. pytest-capture