@@ -1003,6 +1003,25 @@ def test_complex(self):
10031003 {"type" : "usergroup" , "usergroup_id" : "S01BL602YLU" },
10041004 {"type" : "text" , "text" : " " },
10051005 {"type" : "channel" , "channel_id" : "C02GD0YEHDJ" },
1006+ {
1007+ "type" : "date" ,
1008+ "timestamp" : "1628633089" ,
1009+ "format" : "{date_long}" ,
1010+ "url" : "https://slack.com" ,
1011+ "fallback" : "August 10, 2021" ,
1012+ },
1013+ {"type" : "date" , "timestamp" : "1720710212" , "format" : "{date_num} at {time}" , "fallback" : "timey" },
1014+ {
1015+ "type" : "date" ,
1016+ "timestamp" : "1628633089" ,
1017+ "format" : "{date_short_pretty}" ,
1018+ "url" : "https://slack.com" ,
1019+ },
1020+ {
1021+ "type" : "date" ,
1022+ "timestamp" : "1628633089" ,
1023+ "format" : "{ago}" ,
1024+ },
10061025 ],
10071026 },
10081027 ],
@@ -1078,6 +1097,12 @@ def test_complex(self):
10781097 _ .UserGroup (usergroup_id = "S01BL602YLU" ),
10791098 _ .Text (text = " " ),
10801099 _ .Channel (channel_id = "C02GD0YEHDJ" ),
1100+ _ .Date (
1101+ timestamp = "1628633089" , format = "{date_long}" , url = "https://slack.com" , fallback = "August 10, 2021"
1102+ ),
1103+ _ .Date (timestamp = "1720710212" , format = "{date_num} at {time}" , fallback = "timey" ),
1104+ _ .Date (timestamp = "1628633089" , format = "{date_short_pretty}" , url = "https://slack.com" ),
1105+ _ .Date (timestamp = "1628633089" , format = "{ago}" ),
10811106 ]
10821107 ),
10831108 ],
0 commit comments