-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathconftest.py
106 lines (74 loc) · 1.71 KB
/
conftest.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import pytest
import sendwithus
import os
@pytest.fixture
def api_key():
return os.environ.get('SWU_API_KEY')
@pytest.fixture
def api_options():
return {'DEBUG': False}
@pytest.fixture
def api(api_key, api_options):
return sendwithus.api(api_key, **api_options)
@pytest.fixture
def email_id():
return os.environ.get('TEMPLATE_ID')
@pytest.fixture
def version_id():
return os.environ.get('VERSION_ID')
@pytest.fixture
def translation_template_id():
return os.environ.get('TEMPLATE_ID')
@pytest.fixture
def email_address():
return '[email protected]'
@pytest.fixture
def enabled_drip_campaign_id():
return os.environ.get('DRIP_CAMPAIGN_ID')
@pytest.fixture
def disabled_drip_campaign_id():
return os.environ.get('DRIP_CAMPAIGN_DISABLED_ID')
@pytest.fixture
def drip_campaign_step_id():
return os.environ.get('DRIP_CAMPAIGN_STEP_ID')
@pytest.fixture
def recipient():
return {
'name': 'Test User',
'address': '[email protected]'
}
@pytest.fixture
def email_data():
return {
'name': 'Jimmy',
'plants': ['Tree', 'Bush', 'Shrub']
}
@pytest.fixture
def sender():
return {
'name': 'Company',
'address': '[email protected]',
'reply_to': '[email protected]'
}
@pytest.fixture
def cc_test():
return [
{
'name': 'Test CC',
'address': '[email protected]'
}
]
@pytest.fixture
def bcc_test():
return [
{
'name': 'Test BCC',
'address': '[email protected]'
}
]
@pytest.fixture
def translation_file_test():
return './fixtures/translations.zip'
@pytest.fixture
def translation_tag_test():
return 'translate'