1
0
Fork 0
forked from github/pelican

Ruff v0.4.6 auto-fixes

This commit is contained in:
boxydog 2024-05-30 10:53:38 -05:00
commit 0bd02c00c0
5 changed files with 18 additions and 29 deletions

View file

@ -597,9 +597,9 @@ class TestArticlesGenerator(unittest.TestCase):
self.assertEqual(expected, abbreviated_archives)
# Day archives enabled:
settings[
"DAY_ARCHIVE_SAVE_AS"
] = "posts/{date:%Y}/{date:%b}/{date:%d}/index.html"
settings["DAY_ARCHIVE_SAVE_AS"] = (
"posts/{date:%Y}/{date:%b}/{date:%d}/index.html"
)
settings["DAY_ARCHIVE_URL"] = "posts/{date:%Y}/{date:%b}/{date:%d}/"
context = get_context(settings)
generator = ArticlesGenerator(
@ -737,9 +737,9 @@ class TestArticlesGenerator(unittest.TestCase):
all_articles=generator.articles,
)
settings[
"DAY_ARCHIVE_SAVE_AS"
] = "posts/{date:%Y}/{date:%b}/{date:%d}/index.html"
settings["DAY_ARCHIVE_SAVE_AS"] = (
"posts/{date:%Y}/{date:%b}/{date:%d}/index.html"
)
settings["DAY_ARCHIVE_URL"] = "posts/{date:%Y}/{date:%b}/{date:%d}/"
context = get_context(settings)
generator = ArticlesGenerator(