MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / test_document

Method test_document

tests/web/classes/test_blocks.py:447–557  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

445
446class InputBlockTests(unittest.TestCase):
447 def test_document(self):
448 blocks = [
449 {
450 "type": "input",
451 "element": {"type": "plain_text_input"},
452 "label": {"type": "plain_text", "text": "Label", "emoji": True},
453 },
454 {
455 "type": "input",
456 "element": {"type": "plain_text_input", "multiline": True},
457 "label": {"type": "plain_text", "text": "Label", "emoji": True},
458 },
459 {
460 "type": "input",
461 "element": {
462 "type": "datepicker",
463 "initial_date": "1990-04-28",
464 "placeholder": {
465 "type": "plain_text",
466 "text": "Select a date",
467 "emoji": True,
468 },
469 },
470 "label": {"type": "plain_text", "text": "Label", "emoji": True},
471 },
472 {
473 "type": "input",
474 "element": {
475 "type": "channels_select",
476 "placeholder": {
477 "type": "plain_text",
478 "text": "Select a channel",
479 "emoji": True,
480 },
481 },
482 "label": {"type": "plain_text", "text": "Label", "emoji": True},
483 },
484 {
485 "type": "input",
486 "element": {
487 "type": "multi_users_select",
488 "placeholder": {
489 "type": "plain_text",
490 "text": "Select users",
491 "emoji": True,
492 },
493 },
494 "label": {"type": "plain_text", "text": "Label", "emoji": True},
495 },
496 {
497 "type": "input",
498 "element": {
499 "type": "checkboxes",
500 "options": [
501 {
502 "text": {
503 "type": "plain_text",
504 "text": "*this is plain_text text*",

Callers

nothing calls this directly

Calls 3

InputBlockClass · 0.90
to_dictMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected