added packaged template resources

This commit is contained in:
Daniel Fichtinger 2025-06-27 21:48:23 -04:00
parent c4505502e8
commit ca58a0758c
13 changed files with 135 additions and 54 deletions

View file

@ -1,6 +1,6 @@
import pytest
from datetime import date
from zona.models import Metadata
from zona.metadata import Metadata
from zona.builder import split_metadata, discover, build
from pathlib import Path

View file

@ -7,3 +7,8 @@ def test_title(tmp_path: Path):
b = tmp_path / "Writing_emails_Post.md"
assert util.filename_to_title(a) == "My First Post"
assert util.filename_to_title(b) == "Writing Emails Post"
def test_get_resourcees():
util.get_resources("templates")
assert True