test_flat_slug function
ensure that the explicit workflow works
test_flat_slug source
def test_flat_slug(article, slug) -> None:
"ensure that the explicit workflow works"
m = Markata()
m.articles = [article]
flat_slug.pre_render(m)
assert m.articles[0]["slug"] == slug
test_flat_slug_path function
ensure that the second most explicit workflow works
test_flat_slug_path source
def test_flat_slug_path(article, slug) -> None:
"ensure that the second most explicit workflow works"
m = Markata()
m.articles = [article]
flat_slug.pre_render(m)
test_flat_slug_title function
ensure that the second most explicit workflow works
test_flat_slug_title source
def test_flat_slug_title(article, slug) -> None:
"ensure that the second most explicit workflow works"
m = Markata()
m.articles = [article]
flat_slug.pre_render(m)