forked from github/pelican
Ruff v0.4.6 auto-fixes
This commit is contained in:
parent
800f22b3ba
commit
0bd02c00c0
5 changed files with 18 additions and 29 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue