From 9576e3c15afbdc9005b4e08111af454e03fbb61c Mon Sep 17 00:00:00 2001 From: HuangYi Date: Wed, 20 Dec 2023 16:32:23 +0800 Subject: [PATCH] break up ibc test cases --- integration_tests/conftest.py | 5 ++++- integration_tests/test_ibc_rly.py | 2 +- integration_tests/test_ibc_rly_gas.py | 2 +- integration_tests/test_ibc_timeout.py | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/integration_tests/conftest.py b/integration_tests/conftest.py index 1a74ee7754..d531d3ee4e 100644 --- a/integration_tests/conftest.py +++ b/integration_tests/conftest.py @@ -13,9 +13,12 @@ def pytest_configure(config): config.addinivalue_line("markers", "slow: marks tests as slow") config.addinivalue_line("markers", "gravity: gravity bridge test cases") - config.addinivalue_line("markers", "ibc: marks ibc tests") config.addinivalue_line("markers", "ica: marks ica tests") config.addinivalue_line("markers", "upgrade: marks upgrade tests") + config.addinivalue_line("markers", "ibc: marks default ibc tests") + config.addinivalue_line("markers", "ibc_rly_evm: marks ibc_rly_evm tests") + config.addinivalue_line("markers", "ibc_rly_gas: marks ibc relayer gas tests") + config.addinivalue_line("markers", "ibc_timeout: marks ibc timeout tests") def pytest_collection_modifyitems(items, config): diff --git a/integration_tests/test_ibc_rly.py b/integration_tests/test_ibc_rly.py index e27bef0223..d1fa680f3e 100644 --- a/integration_tests/test_ibc_rly.py +++ b/integration_tests/test_ibc_rly.py @@ -28,7 +28,7 @@ wait_for_new_blocks, ) -pytestmark = pytest.mark.ibc +pytestmark = pytest.mark.ibc_rly_evm CONTRACT = "0x0000000000000000000000000000000000000065" contract_info = json.loads(CONTRACT_ABIS["IRelayerModule"].read_text()) diff --git a/integration_tests/test_ibc_rly_gas.py b/integration_tests/test_ibc_rly_gas.py index 74834c969c..4300adc817 100644 --- a/integration_tests/test_ibc_rly_gas.py +++ b/integration_tests/test_ibc_rly_gas.py @@ -4,7 +4,7 @@ from .ibc_utils import log_gas_records, prepare_network, rly_transfer from .utils import wait_for_new_blocks -pytestmark = pytest.mark.ibc +pytestmark = pytest.mark.ibc_rly_gas @pytest.fixture(scope="module", params=["ibc_rly", "ibc_rly_evm"]) diff --git a/integration_tests/test_ibc_timeout.py b/integration_tests/test_ibc_timeout.py index d17c2b6ce4..582ac9211c 100644 --- a/integration_tests/test_ibc_timeout.py +++ b/integration_tests/test_ibc_timeout.py @@ -9,7 +9,7 @@ ) from .utils import ADDRS, eth_to_bech32, wait_for_fn -pytestmark = pytest.mark.ibc +pytestmark = pytest.mark.ibc_timeout @pytest.fixture(scope="module")