feat: Mastodon Post Composition and Publishing

This commit is contained in:
OpenVelo Agent
2026-08-04 18:57:43 +00:00
parent d435aa6f8f
commit 038e10b87d
9 changed files with 425 additions and 26 deletions
+3
View File
@@ -11,6 +11,7 @@ from tenbackward.matching import (
MatchedPost,
find_anniversary_matches,
iter_anniversary_paths,
slugify_title,
)
@@ -64,6 +65,7 @@ def test_match_uses_frontmatter_date_and_title(tmp_path: Path) -> None:
assert match.title == "Foo"
assert match.date == date(2014, 8, 4)
assert match.url == "https://chaospott.de/2014/08/04/foo/"
assert match.url.endswith(slugify_title(match.title) + "/")
def test_match_falls_back_to_filename_when_frontmatter_missing(tmp_path: Path) -> None:
@@ -87,6 +89,7 @@ def test_match_falls_back_to_filename_when_frontmatter_missing(tmp_path: Path) -
assert match.title == "no-frontmatter"
assert match.date == date(2015, 3, 10)
assert match.url == "https://chaospott.de/2015/03/10/no-frontmatter/"
assert match.url.endswith(slugify_title(match.title) + "/")
def test_unpublished_post_is_skipped(tmp_path: Path) -> None: