Skip to content

Commit f7d3d74

Browse files
committed
test: Add a dict singleton as well
1 parent 23ca07d commit f7d3d74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

injector_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,7 @@ def configure(binder: Binder) -> None:
857857
def test_multibind_scopes_does_not_apply_to_the_type_globally() -> None:
858858
def configure(binder: Binder) -> None:
859859
binder.multibind(List[Plugin], to=PluginA, scope=singleton)
860+
binder.multibind(Dict[str, Plugin], to={'a': PluginA}, scope=singleton)
860861

861862
injector = Injector([configure])
862863
plugins = injector.get(List[Plugin])

0 commit comments

Comments
 (0)