Skip to content

Commit 2a75853

Browse files
committed
test: Add a dict singleton as well
1 parent 52da8e2 commit 2a75853

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

injector_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,7 @@ def configure(binder: Binder) -> None:
889889
def test_multibind_scopes_does_not_apply_to_the_type_globally() -> None:
890890
def configure(binder: Binder) -> None:
891891
binder.multibind(List[Plugin], to=PluginA, scope=singleton)
892+
binder.multibind(Dict[str, Plugin], to={'a': PluginA}, scope=singleton)
892893

893894
injector = Injector([configure])
894895
plugins = injector.get(List[Plugin])

0 commit comments

Comments
 (0)