From efd5eb13ace76967a1051349f295ff7c2f3a268b Mon Sep 17 00:00:00 2001 From: Jeannette Date: Fri, 24 May 2024 15:13:15 -0500 Subject: [PATCH] RM tests --- .github/workflows/tests.yaml.disabled | 29 +++++++++++++++++++++++++++ tests/conftest.py | 7 +++++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/tests.yaml.disabled diff --git a/.github/workflows/tests.yaml.disabled b/.github/workflows/tests.yaml.disabled new file mode 100644 index 0000000..ce1d0a5 --- /dev/null +++ b/.github/workflows/tests.yaml.disabled @@ -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 diff --git a/tests/conftest.py b/tests/conftest.py index b7329a6..5839fb0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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):