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

Function test_template_string_nested

tests/test_template_strings.py:106–115  ·  view source on GitHub ↗
(writer)

Source from the content-addressed store, hash-verified

104
105@pytest.mark.skipif(sys.version_info < (3, 14), reason="Template Strings not supported")
106def test_template_string_nested(writer):
107 inner = Template(Interpolation(2**8))
108 template = Template("2**8 = ", Interpolation(inner))
109
110 logger.add(writer, format="{message}", colorize=False)
111
112 logger.info(template)
113
114 result = writer.read()
115 assert result == "2**8 = 256\n"
116
117
118@pytest.mark.skipif(sys.version_info < (3, 14), reason="Template Strings not supported")

Callers

nothing calls this directly

Calls 3

addMethod · 0.80
infoMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected