MCPcopy Create free account
hub / github.com/Delgan/loguru / test_invalid_pattern

Function test_invalid_pattern

tests/test_parse.py:159–161  ·  view source on GitHub ↗
(fileobj, pattern)

Source from the content-addressed store, hash-verified

157
158@pytest.mark.parametrize("pattern", [object(), 123, dict])
159def test_invalid_pattern(fileobj, pattern):
160 with pytest.raises(TypeError):
161 next(logger.parse(fileobj, pattern))
162
163
164@pytest.mark.parametrize("cast", [object(), 123])

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected