chore(deps): update dependency black to v24.10.0

This commit is contained in:
NateScarlet 2024-11-12 20:54:44 +08:00
parent cf5e394103
commit 9567f22846
No known key found for this signature in database
GPG Key ID: 5C242793B070309C
2 changed files with 14 additions and 4 deletions

View File

@ -7,4 +7,4 @@ icalendar==4.1.1
# test
pytest==8.3.3
coverage==7.6.4
black==23.12.1
black==24.10.0

View File

@ -1,4 +1,5 @@
"""Test module `fetch_holidays`. """
import json
import pytest
@ -41,11 +42,20 @@ def test_get_rules_2023():
)
assert got == [
("元旦", "2022年12月31日至2023年1月2日放假调休共3天。"),
("春节", "1月21日至27日放假调休共7天。1月28日星期六、1月29日星期日上班。"),
(
"春节",
"1月21日至27日放假调休共7天。1月28日星期六、1月29日星期日上班。",
),
("清明节", "4月5日放假共1天。"),
("劳动节", "4月29日至5月3日放假调休共5天。4月23日星期日、5月6日星期六上班。"),
(
"劳动节",
"4月29日至5月3日放假调休共5天。4月23日星期日、5月6日星期六上班。",
),
("端午节", "6月22日至24日放假调休共3天。6月25日星期日上班。"),
("中秋节、国庆节", "9月29日至10月6日放假调休共8天。10月7日星期六、10月8日星期日上班。"),
(
"中秋节、国庆节",
"9月29日至10月6日放假调休共8天。10月7日星期六、10月8日星期日上班。",
),
]