Completed
Push — master ( ea591d...227828 )
by Allisson
01:22
created

customer_data()   B

Complexity

Conditions 1

Size

Total Lines 25

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 25
rs 8.8571
1
import os
2
3
import pytest
4
5
from vindi.api import get_api_instance
6
7
8
@pytest.fixture
9
def api():
10
    return get_api_instance(token=os.getenv('API_TOKEN', ''))
11
12
13
@pytest.fixture
14
def customer_data():
15
    return {
16
        'customer': {
17
            'id': 2481112,
18
            'name': 'John Doe',
19
            'email': '[email protected]',
20
            'registry_code': None,
21
            'code': None,
22
            'notes': None,
23
            'status': 'inactive',
24
            'created_at': '2017-04-19T13:08:51.795-03:00',
25
            'updated_at': '2017-04-19T13:08:51.795-03:00',
26
            'metadata': {},
27
            'address': {
28
                'street': None,
29
                'number': None,
30
                'additional_details': None,
31
                'zipcode': None,
32
                'neighborhood': None,
33
                'city': None,
34
                'state': None,
35
                'country': None
36
            },
37
            'phones': []
38
        }
39
    }
40