Skip to content

Commit

Permalink
tests: add test for datetime instead of arrow object
Browse files Browse the repository at this point in the history
Signed-off-by: onerandomusername <[email protected]>
  • Loading branch information
onerandomusername committed Oct 28, 2021
1 parent 62fa485 commit b721e3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/modmail/utils/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
["timestamp", "expected", "mode"],
[
[arrow.get(1634593650), "<t:1634593650:f>", TimeStampEnum.SHORT_DATE_TIME],
[arrow.get(1), "<t:1:f>", TimeStampEnum.SHORT_DATE_TIME],
[arrow.get(1), "<t:1:f>", TimeStampEnum.DEFAULT],
[arrow.get(12356941), "<t:12356941:R>", TimeStampEnum.RELATIVE_TIME],
[arrow.get(8675309).datetime, "<t:8675309:D>", TimeStampEnum.LONG_DATE],
],
)
def test_timestamp(timestamp, expected: str, mode: utils_time.TimeStampEnum):
Expand Down

0 comments on commit b721e3a

Please sign in to comment.