-
Notifications
You must be signed in to change notification settings - Fork 3
/
conftest.py
45 lines (34 loc) · 3.89 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
import pytest
from pypicpay import PicPay
@pytest.fixture
def picpay():
return PicPay("test", "test")
@pytest.fixture
def payment_payload():
return {
"referenceId": "102030",
"paymentUrl": "https://app.picpay.com/checkout/NWUzM2IwYjNiM2U0YmI0M2U5Njk1NjAy",
"qrcode": {
"content": "https://app.picpay.com/checkout/NWUzM2IwYjNiM2U0YmI0M2U5Njk1NjAy",
"base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIaElEQVR4nO3dwU7cWBRF0RD1/38y6gFSRmk3OC+Xu11rzQGXq9iqwdHz2/v7+w+Agp/ffQEAnyVYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkCFYQMY/330B/+nnz3BM39/fz/7Ci7tx/G/du4xJFy/5+BXeu71LbtQ9k5+orwrfVuDVCBaQIVhAhmABGYIFZAgWkCFYQIZgARl7h6MXlgzb7o0D05PCC/fGnMffyuOb0uMXn/70frvkRQOvSbCADMECMgQLyBAsIEOwgAzBAjIEC8hIDkcvLDlwcv/furBkEHvvF17cw/1nh6Y/vTN8wwIyBAvIECwgQ7CADMECMgQLyBAsIEOwgIynDUf3mzyZc8kQ8eIyJg8jPb5EZZ5vWECGYAEZggVkCBaQIVhAhmABGYIFZAgWkGE4Om3/A9Pv7TyPu/eSj/8Uq3ifgAzBAjIEC8gQ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AEZggVkCBaQIVhAhmABGYIFZAgWkCFYQIZgARmCBWQIFpAhWECGYAEZggVk/AudueVMU5TuxAAAAABJRU5ErkJggg==", # noqa: E501
},
"expiresAt": "2022-05-01T16:00:00-03:00",
}
@pytest.fixture
def payment_cancellations_payload():
return {
"referenceId": "102030",
"cancellationId": "5e34e3415385626b6d18f25c",
}
@pytest.fixture
def buyer():
return {
"firstName": "João",
"lastName": "Da Silva",
"document": "123.456.789-10",
"email": "[email protected]",
"phone": "+55 27 12345-6789",
}
@pytest.fixture
def payment_status():
return {"referenceId": "102030", "status": "expired"}