-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Correct validation for SectionBlock (#32)
- Loading branch information
1 parent
2c14271
commit a127525
Showing
6 changed files
with
146 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "slackblocks" | ||
version = "0.9.6" | ||
version = "0.9.7" | ||
description = "Python wrapper for the Slack Blocks API" | ||
authors = [ | ||
"Nicholas Lambourne <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
test/samples/blocks/section_block_both_text_and_fields.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"type": "section", | ||
"block_id": "fake_block_id", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "Hello" | ||
}, | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": "Are you" | ||
}, | ||
{ | ||
"type": "plain_text", | ||
"text": "There?", | ||
"emoji": true | ||
} | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
test/samples/blocks/section_block_empty_text_field_value.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"type": "section", | ||
"block_id": "fake_block_id", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": "Highly" | ||
}, | ||
{ | ||
"type": "plain_text", | ||
"text": "Strung", | ||
"emoji": true | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
test/samples/blocks/section_block_single_field_value_coercion.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"type": "section", | ||
"block_id": "fake_block_id", | ||
"fields": [ | ||
{ | ||
"type": "mrkdwn", | ||
"text": "Lowly" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters