@@ -66,7 +66,9 @@ def test_typer_command_interface_matches(self):
66
66
)
67
67
68
68
def test_typer_callback_interface_matches (self ):
69
- dt_params = set (get_named_arguments (Typer .callback ))
69
+ dt_params = set (get_named_arguments (Typer .callback )) - {
70
+ "name"
71
+ } # todo fix in 3.0
70
72
typer_params = set (get_named_arguments (typer .Typer .callback ))
71
73
72
74
self .assertFalse (dt_params .symmetric_difference (typer_params ))
@@ -76,7 +78,9 @@ def test_typer_callback_interface_matches(self):
76
78
)
77
79
78
80
def test_typer_initialize_interface_matches (self ):
79
- dt_params = set (get_named_arguments (Typer .initialize ))
81
+ dt_params = set (get_named_arguments (Typer .initialize )) - {
82
+ "name"
83
+ } # todo fix in 3.0
80
84
typer_params = set (get_named_arguments (typer .Typer .callback ))
81
85
82
86
self .assertFalse (dt_params .symmetric_difference (typer_params ))
@@ -132,7 +136,9 @@ def test_group_interface_matches(self):
132
136
def test_initialize_interface_matches (self ):
133
137
from django_typer .management import callback
134
138
135
- initialize_params = set (get_named_arguments (initialize ))
139
+ initialize_params = set (get_named_arguments (initialize )) - {
140
+ "name"
141
+ } # todo fix in 3.0
136
142
typer_params = set (get_named_arguments (typer .Typer .callback ))
137
143
138
144
self .assertFalse (initialize_params .symmetric_difference (typer_params ))
@@ -205,7 +211,9 @@ def test_base_class_command_interface_matches(self):
205
211
def test_base_class_initialize_interface_matches (self ):
206
212
from django_typer .management import TyperCommand
207
213
208
- command_params = set (get_named_arguments (TyperCommand .initialize ))
214
+ command_params = set (get_named_arguments (TyperCommand .initialize )) - {
215
+ "name"
216
+ } # todo fix in 3.0
209
217
typer_params = set (get_named_arguments (typer .Typer .callback ))
210
218
211
219
self .assertFalse (command_params .symmetric_difference (typer_params ))
0 commit comments