Completed
Push — master ( ea1ba2...576d5b )
by Max
08:13
created

namespace()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
1
import pytest
2
3
4
@pytest.fixture
5
def namespaces():
6
    import class_namespaces
7
    return class_namespaces
8
9
10
@pytest.fixture
11
def namespace(namespaces):
12
    return namespaces.Namespace
13
14
15
@pytest.fixture(params=['main', 'abc'])
16
def namespaceable(request, namespaces, abc):
17
    if request.param == 'main':
18
        return namespaces.Namespaceable
19
    else:
20
        return abc.NamespaceableABC
21
22
23
@pytest.fixture
24
def compat():
25
    import class_namespaces.compat
26
    return class_namespaces.compat
27
28
29
@pytest.fixture
30
def abc():
31
    import class_namespaces.compat.abc
32
    return class_namespaces.compat.abc
33