Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Skelmis committed Sep 30, 2023
1 parent dcc164f commit ff7e51f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_interaction_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ async def test_send(interaction_handler: InteractionHandler):

await interaction_handler.send("Hello world")
assert interaction_handler.has_sent_something is True
assert interaction_handler.interaction.assert_called_with(
assert interaction_handler.interaction.send.assert_called_with(
content="Hello world", ephemeral=True
)

interaction_handler.interaction = AsyncMock()
await interaction_handler.send(
"Hello world", embed="Embed", file="File", components=["Test"]
)
assert interaction_handler.interaction.assert_called_with(
assert interaction_handler.interaction.send.assert_called_with(
content="Hello world",
ephemeral=True,
embed="Embed",
Expand Down

0 comments on commit ff7e51f

Please sign in to comment.