Skip to content

Commit

Permalink
✅ Fix Axelar compilation test
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Jul 17, 2023
1 parent 74bccbc commit 293f9b8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions tests/test_compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ def config():

@pytest.fixture()
def setup_project(request):
clone_url = request.param
clone_url, dependencies_installer = request.param
repo = None

try:
repo = Repo.clone_from(
clone_url, PYTEST_BUILD_PATH, multi_options=["--depth=1"]
)
subprocess.run(
["yarn", "install"],
[dependencies_installer, "install"],
cwd=PYTEST_BUILD_PATH,
shell=(platform.system() == "Windows"),
)
Expand All @@ -61,7 +61,9 @@ def onerror(func, path, exc_info):

@pytest.mark.slow
@pytest.mark.parametrize(
"setup_project", [r"https://github.com/Uniswap/v3-core.git"], indirect=True
"setup_project",
[(r"https://github.com/Uniswap/v3-core.git", "yarn")],
indirect=True,
)
def test_compile_uniswap_v3(setup_project, config):
files = list((PYTEST_BUILD_PATH / "contracts").rglob("*.sol"))
Expand Down Expand Up @@ -94,7 +96,9 @@ def test_compile_uniswap_v3(setup_project, config):

@pytest.mark.slow
@pytest.mark.parametrize(
"setup_project", [r"https://github.com/graphprotocol/contracts.git"], indirect=True
"setup_project",
[(r"https://github.com/graphprotocol/contracts.git", "yarn")],
indirect=True,
)
@pytest.mark.skip()
def test_compile_the_graph(setup_project, config):
Expand Down Expand Up @@ -122,7 +126,9 @@ def test_compile_the_graph(setup_project, config):

@pytest.mark.slow
@pytest.mark.parametrize(
"setup_project", [r"https://github.com/traderjoe-xyz/joe-core.git"], indirect=True
"setup_project",
[(r"https://github.com/traderjoe-xyz/joe-core.git", "yarn")],
indirect=True,
)
def test_compile_trader_joe(setup_project, config):
files = list((PYTEST_BUILD_PATH / "contracts").rglob("*.sol"))
Expand Down Expand Up @@ -159,7 +165,7 @@ def test_compile_trader_joe(setup_project, config):
@pytest.mark.slow
@pytest.mark.parametrize(
"setup_project",
[r"https://github.com/axelarnetwork/axelar-cgp-solidity.git"],
[(r"https://github.com/axelarnetwork/axelar-cgp-solidity.git", "npm")],
indirect=True,
)
def test_compile_axelar(setup_project, config):
Expand Down

0 comments on commit 293f9b8

Please sign in to comment.