Conditions | 1 |
Total Lines | 6 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import pytest |
||
43 | def test_singleton_can_compose_other_dependencies(container_with_deps: Container): |
||
44 | first = container_with_deps.resolve(MyCompositeDep) |
||
45 | second = container_with_deps.resolve(MyCompositeDep) |
||
46 | assert type(first.a) == MyBasicDep |
||
47 | assert type(first.b) == MyMoreComplicatedDep |
||
48 | assert first is second |
||
49 |