Skip to content

Commit 0a55e2a

Browse files
committed
Add tests for #1171
1 parent facfc35 commit 0a55e2a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/slack_sdk/models/test_elements.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@ def test_eq(self):
3838
BlockElement(type="test"), BlockElement(type="another test")
3939
)
4040

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+
4156

4257
# -------------------------------------------------
4358
# Interactive Elements

0 commit comments

Comments
 (0)