We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent facfc35 commit 0a55e2aCopy full SHA for 0a55e2a
1 file changed
tests/slack_sdk/models/test_elements.py
@@ -38,6 +38,21 @@ def test_eq(self):
38
BlockElement(type="test"), BlockElement(type="another test")
39
)
40
41
+ def test_parse_timepicker(self):
42
+ timepicker = BlockElement.parse(
43
+ {
44
+ "type": "timepicker",
45
+ "action_id": "timepicker123",
46
+ "initial_time": "11:40",
47
+ "placeholder": {
48
+ "type": "plain_text",
49
+ "text": "Select a time",
50
+ },
51
+ }
52
+ )
53
+ self.assertIsNotNone(timepicker)
54
+ self.assertEqual(timepicker.type, TimePickerElement.type)
55
+
56
57
# -------------------------------------------------
58
# Interactive Elements
0 commit comments