Skip to content

Commit

Permalink
RM tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeannettemcd committed May 24, 2024
1 parent fdc37a8 commit efd5eb1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/tests.yaml.disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on: [push, pull_request]

name: Run tests

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive

- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.9'

- name: install packages
run: |
sudo apt-get update
sudo apt-get -y install python3-pip jshon jq virtualenv pkg-config openssl libssl-dev autoconf libtool libsecp256k1-dev
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt

- name: Run tests
run: ./test.sh
7 changes: 5 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ def accounts(self):
return self._accounts

class MockWeb3(Web3):
def __init__(self, provider: BaseProvider):
def __init__(self, provider):
super().__init__(provider)
self._eth = MockEth()
self.eth = MagicMock()
self.geth = MagicMock()
self.parity = MagicMock()
self.net = MagicMock()

@property
def eth(self):
Expand Down

0 comments on commit efd5eb1

Please sign in to comment.