From dff181d032ab80f44405186ef510b800a990bcc3 Mon Sep 17 00:00:00 2001 From: Daniel Schiavini Date: Tue, 19 Nov 2024 09:31:55 +0100 Subject: [PATCH] fix: integration tests (#341) fix integration tests that were regressing as of f58c33cde50f6deaaeefff1136b18f92ef747c6b --- tests/integration/fork/test_abi_contract.py | 3 ++- tests/integration/network/anvil/test_network_env.py | 2 +- tests/integration/network/sepolia/test_sepolia_env.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/integration/fork/test_abi_contract.py b/tests/integration/fork/test_abi_contract.py index 8712796f..7cbd28ad 100644 --- a/tests/integration/fork/test_abi_contract.py +++ b/tests/integration/fork/test_abi_contract.py @@ -185,7 +185,8 @@ def test_call_trace_abi_and_vyper(crvusd): @external def foo(x: IERC20): extcall x.transfer(self, 100) - """ + """, + name="VyperContract", ) boa.env.set_balance(boa.env.eoa, 1000) with boa.reverts(): diff --git a/tests/integration/network/anvil/test_network_env.py b/tests/integration/network/anvil/test_network_env.py index 18f18b46..6a289523 100644 --- a/tests/integration/network/anvil/test_network_env.py +++ b/tests/integration/network/anvil/test_network_env.py @@ -79,7 +79,7 @@ def test_deployment_db_overriden_contract_name(): contract_name = "test_deployment" # contract is written to deployments db - contract = boa.loads(code, arg, contract_name=contract_name) + contract = boa.loads(code, arg, name=contract_name) # test get_deployments() deployment = next(db.get_deployments()) diff --git a/tests/integration/network/sepolia/test_sepolia_env.py b/tests/integration/network/sepolia/test_sepolia_env.py index 7801f99c..e0e9de12 100644 --- a/tests/integration/network/sepolia/test_sepolia_env.py +++ b/tests/integration/network/sepolia/test_sepolia_env.py @@ -78,7 +78,7 @@ def test_deployment_db(): contract_name = "test_deployment" # contract is written to deployments db - contract = boa.loads(code, arg, contract_name=contract_name) + contract = boa.loads(code, arg, name=contract_name) # test get_deployments() deployment = next(db.get_deployments())