Skip to content

Commit

Permalink
Format tests
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Jan 26, 2024
1 parent beee68b commit 1dd159c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions tests/slack_sdk/models/test_blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,41 +334,41 @@ def test_title_length(self):
with self.assertRaises(SlackObjectFormationError):
ImageBlock(image_url="https://example.com", alt_text="text", title=STRING_3001_CHARS).to_dict()


def test_slack_file(self):
self.assertDictEqual(
{
"slack_file": {"url": "https://example.com" },
"slack_file": {"url": "https://example.com"},
"alt_text": "not really an image",
"type": "image",
},
ImageBlock(slack_file=SlackFile(url="https://example.com"), alt_text="not really an image").to_dict(),
)
self.assertDictEqual(
{
"slack_file": {"id": "F11111" },
"slack_file": {"id": "F11111"},
"alt_text": "not really an image",
"type": "image",
},
ImageBlock(slack_file=SlackFile(id="F11111"), alt_text="not really an image").to_dict(),
)
self.assertDictEqual(
{
"slack_file": {"url": "https://example.com" },
"slack_file": {"url": "https://example.com"},
"alt_text": "not really an image",
"type": "image",
},
ImageBlock(slack_file= {"url": "https://example.com" }, alt_text="not really an image").to_dict(),
ImageBlock(slack_file={"url": "https://example.com"}, alt_text="not really an image").to_dict(),
)
self.assertDictEqual(
{
"slack_file": {"id": "F11111" },
"slack_file": {"id": "F11111"},
"alt_text": "not really an image",
"type": "image",
},
ImageBlock(slack_file={"id": "F11111" }, alt_text="not really an image").to_dict(),
ImageBlock(slack_file={"id": "F11111"}, alt_text="not really an image").to_dict(),
)


# ----------------------------------------------
# Actions
# ----------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/slack_sdk/models/test_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def test_slack_file(self):
"alt_text": "not really an image",
"type": "image",
},
ImageElement(slack_file= {"url": "https://example.com"}, alt_text="not really an image").to_dict(),
ImageElement(slack_file={"url": "https://example.com"}, alt_text="not really an image").to_dict(),
)


Expand Down

0 comments on commit 1dd159c

Please sign in to comment.