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

Method test_document

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

Source from the content-addressed store, hash-verified

647
648class HeaderBlockTests(unittest.TestCase):
649 def test_document(self):
650 input = {
651 "type": "header",
652 "block_id": "budget-header",
653 "text": {"type": "plain_text", "text": "Budget Performance"},
654 }
655 self.assertDictEqual(input, HeaderBlock(**input).to_dict())
656 self.assertDictEqual(input, Block.parse(input).to_dict())
657
658 def test_text_length_150(self):
659 input = {

Callers

nothing calls this directly

Calls 3

HeaderBlockClass · 0.90
to_dictMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected