monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fd051ea8e10>
caplog = <_pytest.logging.LogCaptureFixture object at 0x7fd051ea8ac8>
def test_override_with_bool_envvar_logging(monkeypatch, caplog):
envvar = "OVERRIDE_WITH_BOOL_ENVVAR"
monkeypatch.setenv(envvar, "not a boolean env value")
for default in (True, False):
caplog.clear()
assert override_with_bool_envvar(envvar, default) == default
> assert len(caplog.records) == 1
E assert 0 == 1
E + where 0 = len([])
E + where [] = <_pytest.logging.LogCaptureFixture object at 0x7fd051ea8ac8>.records
.tox/py3-core-db-server-slow-cover/lib/python3.7/site-packages/swh/core/tests/test_sentry.py:39: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Apr 14 2022, 2:21 PM