Skip to content

Commit 4d57f11

Browse files
committed
Make test a bit harder
1 parent efc62e1 commit 4d57f11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

injector_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,8 +731,11 @@ def configure(binder: Binder) -> None:
731731
injector = Injector([configure])
732732
first_list = injector.get(List[Plugin])
733733
second_list = injector.get(List[Plugin])
734+
child_injector = injector.create_child_injector()
735+
third_list = child_injector.get(List[Plugin])
734736

735737
assert first_list[0] is second_list[0]
738+
assert third_list[0] is second_list[0]
736739

737740

738741
def test_multibind_scopes_applies_to_the_bound_items() -> None:

0 commit comments

Comments
 (0)