Skip to content

Commit

Permalink
s/_validate_function_signature/_validate_callable_arg_types/g
Browse files Browse the repository at this point in the history
  • Loading branch information
fornellas committed Apr 19, 2020
1 parent 28342cf commit 4858dc9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/lib_testslide.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def typevar(self):
def with_typevar(lolo: TypeVar("T")) -> None:
pass

testslide.lib._validate_function_signature(
with_typevar, args=["arg1"], kwargs={}
testslide.lib._validate_callable_arg_types(
False, with_typevar, args=["arg1"], kwargs={}
)
testslide.lib._validate_function_signature(
with_typevar, args=[], kwargs={"arg1": "arg1"}
testslide.lib._validate_callable_arg_types(
False, with_typevar, args=[], kwargs={"arg1": "arg1"}
)

@context.example("Nested TypeVar")
Expand All @@ -105,11 +105,11 @@ def nested_typevar(self):
def with_typevar(arg1: Type[TypeVar("T")]) -> None:
pass

testslide.lib._validate_function_signature(
with_typevar, args=["arg1"], kwargs={}
testslide.lib._validate_callable_arg_types(
False, with_typevar, args=["arg1"], kwargs={}
)
testslide.lib._validate_function_signature(
with_typevar, args=[], kwargs={"arg1": "arg1"}
testslide.lib._validate_callable_arg_types(
False, with_typevar, args=[], kwargs={"arg1": "arg1"}
)

@context.sub_context
Expand Down

0 comments on commit 4858dc9

Please sign in to comment.