When running pytest tests/test_logging.py, the test_log_handler function passes. When running pytest, the function fails with the following output error message:
E AssertionError: assert 'Process completed' in ''
E + where '' = <_pytest.logging.LogCaptureFixture object at 0x7fb4276e3ac8>.text
It appears that the root logger is modified in a different file/module. There is currently a try-except block to temporarily deal with this, but ideally the test should pass regardless of other test files being run.
When running
pytest tests/test_logging.py, thetest_log_handlerfunction passes. When runningpytest, the function fails with the following output error message:It appears that the root logger is modified in a different file/module. There is currently a
try-exceptblock to temporarily deal with this, but ideally the test should pass regardless of other test files being run.