forked from sendwithus/sendwithus_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconftest.py
More file actions
92 lines (64 loc) · 1.41 KB
/
conftest.py
File metadata and controls
92 lines (64 loc) · 1.41 KB
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
import pytest
import sendwithus
@pytest.fixture
def api_key():
return 'THIS_IS_A_TEST_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 'test_fixture_1'
@pytest.fixture
def email_address():
return 'person@example.com'
@pytest.fixture
def segment_id():
return 'seg_VC8FDxDno9X64iUPDFSd76'
@pytest.fixture
def enabled_drip_campaign_id():
return 'dc_Rmd7y5oUJ3tn86sPJ8ESCk'
@pytest.fixture
def disabled_drip_campaign_id():
return 'dc_AjR6Ue9PHPFYmEu2gd8x5V'
@pytest.fixture
def drip_campaign_step_id():
return 'dcs_yaAMiZNWCLAEGw7GLjBuGY'
@pytest.fixture
def recipient():
return {
'name': 'Matt',
'address': 'us@sendwithus.com'
}
@pytest.fixture
def email_data():
return {
'name': 'Jimmy',
'plants': ['Tree', 'Bush', 'Shrub']
}
@pytest.fixture
def sender():
return {
'name': 'Company',
'address': 'company@company.com',
'reply_to': 'info@company.com'
}
@pytest.fixture
def cc_test():
return [
{
'name': 'Matt CC',
'address': 'test+cc@sendwithus.com'
}
]
@pytest.fixture
def bcc_test():
return [
{
'name': 'Matt BCC',
'address': 'test+bcc@sendwithus.com'
}
]