Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import pytest |
||
2 | |||
3 | from lagom import Container |
||
4 | |||
5 | |||
6 | class A: |
||
7 | def __init__(self, b: "B"): |
||
8 | pass |
||
9 | |||
10 | |||
11 | class B: |
||
12 | def __init__(self, a: "A"): |
||
13 | pass |
||
14 | |||
15 | |||
16 | @pytest.mark.skip(reason="Up next to be fixed") |
||
17 | def test_definition_loops_return_a_sensible_error(container: Container): |
||
18 | resolved = container.resolve(B) |
||
19 |