MCPcopy
hub / github.com/lektor/lektor / primary_alt_is_prefixed

Function primary_alt_is_prefixed

tests/test_db.py:377–388  ·  view source on GitHub ↗
(scratch_project_data)

Source from the content-addressed store, hash-verified

375
376@pytest.fixture
377def primary_alt_is_prefixed(scratch_project_data):
378 project_file = Path(scratch_project_data, "Scratch.lektorproject")
379 content = project_file.read_text(encoding="utf-8")
380 write_files(
381 (
382 project_file,
383 content.replace(
384 "[alternatives.en]\n",
385 ("[alternatives.en]\n" "url_prefix = /en/\n"),
386 ),
387 )
388 )
389
390
391@pytest.fixture

Callers

nothing calls this directly

Calls 1

write_filesFunction · 0.85

Tested by

no test coverage detected