B.__init__()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 2
dl 0
loc 2
rs 10
c 0
b 0
f 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