Verify log messages using caplog in pytest
Preconditions (2)
Step 1: Run the function that generates log messages
Step 2: Capture the log messages using the caplog fixture
Step 3: Check that the expected log message appears in the captured logs
✅ Expected Result: The expected log message is found in the captured logs during the test run