From 59ebedd33eecae255b4c405d59ad033636196bef Mon Sep 17 00:00:00 2001 From: shiftinv Date: Thu, 26 Oct 2023 19:32:01 +0200 Subject: [PATCH] chore: fix broken test --- tests/ext/commands/test_params.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ext/commands/test_params.py b/tests/ext/commands/test_params.py index 8e8ca91304..61c812c8f0 100644 --- a/tests/ext/commands/test_params.py +++ b/tests/ext/commands/test_params.py @@ -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}) @@ -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}) @@ -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}) @@ -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}) @@ -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})