File tree 2 files changed +34
-2
lines changed
2 files changed +34
-2
lines changed Original file line number Diff line number Diff line change
1
+ on: [push, pull_request]
2
+
3
+ name: Run tests
4
+
5
+ jobs:
6
+ deploy:
7
+ name: Deploy
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v3
13
+ with:
14
+ submodules: recursive
15
+
16
+ - name: setup python
17
+ uses: actions/setup-python@v4
18
+ with:
19
+ python-version: '3.9'
20
+
21
+ - name: install packages
22
+ run: |
23
+ sudo apt-get update
24
+ sudo apt-get -y install python3-pip jshon jq virtualenv pkg-config openssl libssl-dev autoconf libtool libsecp256k1-dev
25
+ pip3 install -r requirements.txt
26
+ pip3 install -r requirements-dev.txt
27
+
28
+ - name: Run tests
29
+ run: ./test.sh
Original file line number Diff line number Diff line change @@ -42,9 +42,12 @@ def accounts(self):
42
42
return self ._accounts
43
43
44
44
class MockWeb3 (Web3 ):
45
- def __init__ (self , provider : BaseProvider ):
45
+ def __init__ (self , provider ):
46
46
super ().__init__ (provider )
47
- self ._eth = MockEth ()
47
+ self .eth = MagicMock ()
48
+ self .geth = MagicMock ()
49
+ self .parity = MagicMock ()
50
+ self .net = MagicMock ()
48
51
49
52
@property
50
53
def eth (self ):
You can’t perform that action at this time.
0 commit comments