Skip to content

Commit

Permalink
separate gov test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang committed Dec 20, 2023
1 parent 9576e3c commit c6ef908
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def pytest_configure(config):
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")
config.addinivalue_line("markers", "gov: marks gov related tests")


def pytest_collection_modifyitems(items, config):
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,10 +857,12 @@ def test_replay_protection(cronos):
w3.eth.send_raw_transaction(HexBytes(raw))


@pytest.mark.gov
def test_submit_any_proposal(cronos, tmp_path):
submit_any_proposal(cronos, tmp_path)


@pytest.mark.gov
def test_submit_send_enabled(cronos, tmp_path):
# check bank send enable
cli = cronos.cosmos_cli()
Expand Down
2 changes: 2 additions & 0 deletions integration_tests/test_broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from .network import setup_custom_cronos
from .utils import submit_any_proposal

pytestmark = pytest.mark.gov


@pytest.fixture(scope="module")
def custom_cronos(tmp_path_factory):
Expand Down
3 changes: 3 additions & 0 deletions integration_tests/test_gov_update_params.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import json
import pytest

Check failure on line 2 in integration_tests/test_gov_update_params.py

View workflow job for this annotation

GitHub Actions / Lint python

./integration_tests/test_gov_update_params.py:2:1: I003 isort expected 1 blank line in imports, found 0

from .utils import approve_proposal

pytestmark = pytest.mark.gov


def test_gov_update_params(cronos, tmp_path):
cli = cronos.cosmos_cli()
Expand Down

0 comments on commit c6ef908

Please sign in to comment.