Skip to content

Commit

Permalink
Add edge test cases for Zulu.format("YYYY").
Browse files Browse the repository at this point in the history
  • Loading branch information
dgilland committed Aug 15, 2019
1 parent bfeec57 commit cd56148
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_zulu.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ def test_zulu_parse_format(string, kargs, expected):
(Zulu(2000, 1, 5, 13, 7, 8, 123456), "a", "PM"),
(Zulu(2000, 1, 5, 13, 7, 8, 123456), "Z", "+0000"),
(Zulu(), " ", " "),
(Zulu(2019, 12, 29, 0, 0), "YYYY", "2019"),
(Zulu(2019, 12, 30, 0, 0), "YYYY", "2020"),
],
)
def test_zulu_format_pattern(dt, opts, expected):
Expand Down

0 comments on commit cd56148

Please sign in to comment.