forked from cerc-io/laconicd-deprecated
fd0e62a067
* first pass * latest * working tests * github actions * remove unnecessary change * remove unnecessary steps * remove unnecessary import * remove unnecessary change * Update .github/workflows/test.yml Co-authored-by: yihuang <huang@crypto.com> * update .gitignore * update github actions * change evm denomination * change evm denomination * send tests to tests folder * Delete result * update go version Co-authored-by: yihuang <huang@crypto.com> Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
33 lines
856 B
Python
33 lines
856 B
Python
import pytest
|
|
|
|
from .network import setup_ethermint, setup_geth
|
|
|
|
@pytest.fixture(scope="session")
|
|
def ethermint(tmp_path_factory):
|
|
path = tmp_path_factory.mktemp("ethermint")
|
|
yield from setup_ethermint(path, 26650)
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def geth(tmp_path_factory):
|
|
path = tmp_path_factory.mktemp("geth")
|
|
yield from setup_geth(path, 8545)
|
|
|
|
|
|
@pytest.fixture(scope="session", params=["ethermint", "geth", "ethermint-ws"])
|
|
def cluster(request, ethermint, geth):
|
|
"""
|
|
run on both ethermint and geth
|
|
"""
|
|
provider = request.param
|
|
if provider == "ethermint":
|
|
yield ethermint
|
|
elif provider == "geth":
|
|
yield geth
|
|
elif provider == "ethermint-ws":
|
|
ethermint_ws = ethermint.copy()
|
|
ethermint_ws.use_websocket()
|
|
yield ethermint_ws
|
|
else:
|
|
raise NotImplementedError
|