Skip to content

Commit

Permalink
Add a test case for slackapi#623
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Apr 28, 2020
1 parent 31c252d commit c817eb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/web/classes/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,15 @@ def test_json(self):
).to_dict(),
)

def test_issue_623(self):
elem = DatePickerElement(action_id='1', placeholder=None)
elem.to_dict() # no exception
elem = DatePickerElement(action_id='1')
elem.to_dict() # no exception
with self.assertRaises(SlackObjectFormationError):
elem = DatePickerElement(action_id='1', placeholder="12345" * 100)
elem.to_dict() # no exception


# -------------------------------------------------
# Image
Expand Down

0 comments on commit c817eb5

Please sign in to comment.