Source code for gridstatus.tests.test_logger

import pytest

from gridstatus.logging import log


@pytest.fixture
[docs]def msg(): return "testing from test_logger.py"
[docs]def test_log_stdout(msg, caplog): log(msg, verbose=True) assert msg, "\n" in caplog.text
[docs]def test_log_no_stdout(msg, caplog): log(msg, verbose=False) assert msg, "\n" not in caplog.text