Passed
Branch master (2e0d62)
by Max
50s
created

tests.structured_data.conftest   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 26
dl 0
loc 39
rs 10
c 0
b 0
f 0
wmc 6
1
import pytest
2
3
from . import enum_options
4
5
6
@pytest.fixture(scope='session')
7
def enum():
8
    from structured_data import enum
9
    return enum
10
11
12
@pytest.fixture(scope='session')
13
def match():
14
    from structured_data import match
15
    return match
16
17
18
@pytest.fixture(scope='session')
19
def _prewritten_methods():
20
    from structured_data import _prewritten_methods
21
    return _prewritten_methods
22
23
24
@pytest.fixture(scope='session')
25
def _enum_constructor():
26
    from structured_data import _enum_constructor
27
    return _enum_constructor
28
29
30
@pytest.fixture(scope='session')
31
def data():
32
    from structured_data import data
33
    return data
34
35
36
@pytest.fixture(scope='session', params=enum_options.TEST_CLASSES)
37
def option_class(request):
38
    return request.param
39