Skip to content

Commit b721e3a

Browse files
tests: add test for datetime instead of arrow object
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
1 parent 62fa485 commit b721e3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/modmail/utils/test_time.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
["timestamp", "expected", "mode"],
1010
[
1111
[arrow.get(1634593650), "<t:1634593650:f>", TimeStampEnum.SHORT_DATE_TIME],
12-
[arrow.get(1), "<t:1:f>", TimeStampEnum.SHORT_DATE_TIME],
12+
[arrow.get(1), "<t:1:f>", TimeStampEnum.DEFAULT],
1313
[arrow.get(12356941), "<t:12356941:R>", TimeStampEnum.RELATIVE_TIME],
14+
[arrow.get(8675309).datetime, "<t:8675309:D>", TimeStampEnum.LONG_DATE],
1415
],
1516
)
1617
def test_timestamp(timestamp, expected: str, mode: utils_time.TimeStampEnum):

0 commit comments

Comments
 (0)