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

Function test_parse_regex_pattern

tests/test_parse.py:67–70  ·  view source on GitHub ↗
(fileobj)

Source from the content-addressed store, hash-verified

65
66
67def test_parse_regex_pattern(fileobj):
68 regex = re.compile(r"(?P<maj>[a-z]*![a-z]*)", flags=re.I)
69 result, *_ = list(logger.parse(fileobj, regex))
70 assert result == dict(maj="ABC!DEF")
71
72
73def test_parse_multiline_pattern(fileobj):

Callers

nothing calls this directly

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected