(scratch_project_data)
| 12 | |
| 13 | @pytest.fixture |
| 14 | def scratch_project_data(scratch_project_data): |
| 15 | # Add a sub-page to the scratch project |
| 16 | data = {"_model": "page", "title": "Subpage", "body": "Subpage body"} |
| 17 | subpage_lr = scratch_project_data / "content/sub-page/contents.lr" |
| 18 | subpage_lr.dirpath().ensure_dir() |
| 19 | subpage_lr.write_text("".join(lektor.metaformat.serialize(data.items())), "utf-8") |
| 20 | return scratch_project_data |
| 21 | |
| 22 | |
| 23 | @pytest.fixture |
nothing calls this directly
no test coverage detected