Skip to content

Commit 0d90636

Browse files
WilliamBergaminClaude
andcommitted
docs: match AuthProviderBlock docstring and test layout to existing blocks
Puts each max-length note on its own line, as the other text-object fields do, and adds the section divider the block test classes use. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
1 parent f8ddfd0 commit 0d90636

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

‎slack_sdk/models/blocks/blocks.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,10 +1228,12 @@ def __init__(
12281228
disconnect_url: The HTTPS URL opened when the user clicks Disconnect. Its host must be listed in
12291229
the app manifest's features.user_connections.auth_hosts, or be a subdomain of one.
12301230
Maximum length for this field is 3000 characters.
1231-
connected_identity: The display name of the connected account, shown when is_connected is true,
1232-
in the form of a plain_text text object. Maximum length for the text in this field is 75 characters.
1231+
connected_identity: The display name of the connected account, in the form of a plain_text text object.
1232+
Shown when is_connected is true.
1233+
Maximum length for the text in this field is 75 characters.
12331234
connected_context: Additional context about the connection, such as an organization or workspace name,
1234-
in the form of a plain_text text object. Maximum length for the text in this field is 75 characters.
1235+
in the form of a plain_text text object.
1236+
Maximum length for the text in this field is 75 characters.
12351237
accessory: An overflow menu element shown when the user is connected.
12361238
fallback: A list of blocks rendered in place of this block by clients that don't support it.
12371239
block_id: A unique identifier for a block. If not specified, a block_id will be generated.

‎tests/slack_sdk/models/test_blocks.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,6 +1990,11 @@ def test_empty_elements_validation(self):
19901990
CarouselBlock(elements=[]).validate_json()
19911991

19921992

1993+
# ----------------------------------------------
1994+
# Auth provider
1995+
# ----------------------------------------------
1996+
1997+
19931998
class AuthProviderBlockTests(unittest.TestCase):
19941999
def test_document_required_fields(self):
19952000
input = {

0 commit comments

Comments
 (0)