Skip to content

Commit ae199e6

Browse files
committed
test callable provider for dict multibind as well
1 parent d469f2a commit ae199e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

injector_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ def test__multibind_dict_of_plugins():
698698
def configure(binder: Binder):
699699
binder.multibind(Dict[str, Plugin], to={'a': PluginA})
700700
binder.multibind(Dict[str, Plugin], to={'b': PluginB, 'c': PluginC()})
701-
binder.multibind(Dict[str, Plugin], to={'d': PluginD()})
701+
binder.multibind(Dict[str, Plugin], to=lambda: {'d': PluginD()})
702702

703703
injector = Injector([configure])
704704
plugins = injector.get(Dict[str, Plugin])

0 commit comments

Comments
 (0)