Skip to content

Commit efd5eb1

Browse files
committed
RM tests
1 parent fdc37a8 commit efd5eb1

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/tests.yaml.disabled

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

tests/conftest.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,12 @@ def accounts(self):
4242
return self._accounts
4343

4444
class MockWeb3(Web3):
45-
def __init__(self, provider: BaseProvider):
45+
def __init__(self, provider):
4646
super().__init__(provider)
47-
self._eth = MockEth()
47+
self.eth = MagicMock()
48+
self.geth = MagicMock()
49+
self.parity = MagicMock()
50+
self.net = MagicMock()
4851

4952
@property
5053
def eth(self):

0 commit comments

Comments
 (0)