MCPcopy
hub / github.com/lektor/lektor / write_files

Function write_files

tests/test_db.py:349–352  ·  view source on GitHub ↗
(*path_text_pairs)

Source from the content-addressed store, hash-verified

347
348
349def write_files(*path_text_pairs):
350 for path, text in path_text_pairs:
351 path.parent.mkdir(parents=True, exist_ok=True)
352 path.write_text(inspect.cleandoc(text), "utf-8")
353
354
355@pytest.fixture

Callers 4

dotted_slug_test_recordsFunction · 0.85
primary_alt_is_prefixedFunction · 0.85
paginated_pagesFunction · 0.85
dummy_attachmentFunction · 0.85

Calls 1

mkdirMethod · 0.80

Tested by

no test coverage detected