Skip to content

Commit

Permalink
chore: fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftinv committed Oct 26, 2023
1 parent 0bee9dc commit 59ebedd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/ext/commands/test_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_isolate_self(self) -> None:
def func(a: int) -> None:
...

(cog, inter), parameters = params.isolate_self(params.signature(func))
(cog, inter), parameters = params.isolate_self(params.get_signature_parameters(func))
assert cog is None
assert inter is None
assert parameters == ({"a": mock.ANY})
Expand All @@ -80,7 +80,7 @@ def test_isolate_self_inter(self) -> None:
def func(i: disnake.ApplicationCommandInteraction, a: int) -> None:
...

(cog, inter), parameters = params.isolate_self(params.signature(func))
(cog, inter), parameters = params.isolate_self(params.get_signature_parameters(func))
assert cog is None
assert inter is not None
assert parameters == ({"a": mock.ANY})
Expand All @@ -89,7 +89,7 @@ def test_isolate_self_cog_inter(self) -> None:
def func(self, i: disnake.ApplicationCommandInteraction, a: int) -> None:
...

(cog, inter), parameters = params.isolate_self(params.signature(func))
(cog, inter), parameters = params.isolate_self(params.get_signature_parameters(func))
assert cog is not None
assert inter is not None
assert parameters == ({"a": mock.ANY})
Expand All @@ -98,7 +98,7 @@ def test_isolate_self_generic(self) -> None:
def func(i: disnake.ApplicationCommandInteraction[commands.Bot], a: int) -> None:
...

(cog, inter), parameters = params.isolate_self(params.signature(func))
(cog, inter), parameters = params.isolate_self(params.get_signature_parameters(func))
assert cog is None
assert inter is not None
assert parameters == ({"a": mock.ANY})
Expand All @@ -109,7 +109,7 @@ def func(
) -> None:
...

(cog, inter), parameters = params.isolate_self(params.signature(func))
(cog, inter), parameters = params.isolate_self(params.get_signature_parameters(func))
assert cog is None
assert inter is not None
assert parameters == ({"a": mock.ANY})
Expand Down

0 comments on commit 59ebedd

Please sign in to comment.