MCPcopy
hub / github.com/lektor/lektor / test_unicode_project_folder

Function test_unicode_project_folder

tests/test_unicode.py:20–24  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

18
19
20def test_unicode_project_folder(tmpdir):
21 pad, builder = get_unicode_builder(tmpdir)
22 prog, _ = builder.build(pad.root)
23 with prog.artifacts[0].open("rb") as f:
24 assert f.read() == b"<h1>Hello</h1>\n<p>W\xc3\xb6rld</p>\n\n"
25
26
27def test_unicode_attachment_filename(tmpdir):

Callers

nothing calls this directly

Calls 3

get_unicode_builderFunction · 0.85
buildMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected