From 13adaf95571734641bbe56db9b89448a676de8ec Mon Sep 17 00:00:00 2001 From: Max Fischer Date: Mon, 5 Feb 2024 17:36:50 +0100 Subject: [PATCH] explain and link warning test --- cobald_tests/decorator/test_logger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cobald_tests/decorator/test_logger.py b/cobald_tests/decorator/test_logger.py index 84f2264..d35f9f2 100644 --- a/cobald_tests/decorator/test_logger.py +++ b/cobald_tests/decorator/test_logger.py @@ -57,7 +57,8 @@ def test_name(self): def test_verification(self): pool = FullMockPool() - # no warnings by default + # ensure no warnings by default + # see https://docs.pytest.org/en/8.0.x/how-to/capture-warnings.html#additional-use-cases-of-warnings-in-tests # noqa with warnings.catch_warnings(): warnings.simplefilter("error") Logger(target=pool, name="test logger")