-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconftest.py
50 lines (34 loc) · 895 Bytes
/
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
import pytest
from pathlib import Path
from simular import PyEvm
PATH = Path(__file__).parent
@pytest.fixture
def bob():
return "0xed6ff00ae6a64df0bf28e159c4a48311b931f458"
@pytest.fixture
def alice():
return "0x0091410228bf6062ab28c949ba4172ee9144bfde"
@pytest.fixture
def evm():
return PyEvm()
@pytest.fixture
def erc20abi():
with open(f"{PATH}/./fixtures/erc20.abi") as f:
ercabi = f.read()
return ercabi
@pytest.fixture
def erc20bin():
with open(f"{PATH}/./fixtures/erc20.bin") as f:
ercbin = f.read()
bits = bytes.fromhex(ercbin)
return bits
@pytest.fixture
def kitchen_sink_json():
with open(f"{PATH}/./fixtures/KitchenSink.json") as f:
rawabi = f.read()
return rawabi
@pytest.fixture
def block_meta_json():
with open(f"{PATH}/./fixtures/BlockMeta.json") as f:
rawabi = f.read()
return rawabi