Skip to content

Commit

Permalink
Merge pull request #866 from mkoura/reorder_tests
Browse files Browse the repository at this point in the history
Reorder tests
  • Loading branch information
mkoura committed Jan 9, 2022
2 parents 5ded6d2 + d112880 commit 2e41c7b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
3 changes: 1 addition & 2 deletions cardano_node_tests/tests/test_configuration.py
Expand Up @@ -134,7 +134,7 @@ def check_epoch_length(cluster_obj: clusterlib.ClusterLib) -> None:
assert epoch + 1 == cluster_obj.get_epoch()


@pytest.mark.order(3)
@pytest.mark.order(5)
@pytest.mark.skipif(
VERSIONS.transaction_era != VERSIONS.DEFAULT_TX_ERA,
reason="different TX eras doesn't affect this test, pointless to run",
Expand All @@ -153,7 +153,6 @@ def test_epoch_length(self, cluster_epoch_length: clusterlib.ClusterLib):
check_epoch_length(cluster)

@allure.link(helpers.get_vcs_link())
@pytest.mark.order(2)
def test_slot_length(self, cluster_slot_length: clusterlib.ClusterLib):
"""Test the *slotLength* configuration."""
cluster = cluster_slot_length
Expand Down
6 changes: 3 additions & 3 deletions cardano_node_tests/tests/test_delegation.py
Expand Up @@ -92,7 +92,7 @@ def pool_users_disposable(


@pytest.mark.testnets
@pytest.mark.order(3)
@pytest.mark.order(8)
class TestDelegateAddr:
"""Tests for address delegation to stake pools."""

Expand Down Expand Up @@ -207,7 +207,7 @@ def test_delegate_using_vkey(
)

@allure.link(helpers.get_vcs_link())
@pytest.mark.order(2)
@pytest.mark.order(7)
@pytest.mark.dbsync
@pytest.mark.long
def test_deregister(
Expand Down Expand Up @@ -329,7 +329,7 @@ def test_deregister(
assert delegation_out.pool_user.stake.address in tx_db_dereg.stake_deregistration

@allure.link(helpers.get_vcs_link())
@pytest.mark.order(2)
@pytest.mark.order(7)
@pytest.mark.dbsync
@pytest.mark.long
def test_undelegate(
Expand Down
6 changes: 3 additions & 3 deletions cardano_node_tests/tests/test_kes.py
Expand Up @@ -108,7 +108,7 @@ class TestKES:
"""Basic tests for KES period."""

@allure.link(helpers.get_vcs_link())
@pytest.mark.order(3)
@pytest.mark.order(5)
@pytest.mark.skipif(
not (VERSIONS.cluster_era == VERSIONS.transaction_era == VERSIONS.LAST_KNOWN_ERA),
reason="meant to run only with the latest cluster era and the latest transaction era",
Expand Down Expand Up @@ -142,7 +142,7 @@ def test_expired_kes(
assert cluster.get_slot_no() == init_slot, "Unexpected new slots"

@allure.link(helpers.get_vcs_link())
@pytest.mark.order(1)
@pytest.mark.order(6)
def test_opcert_future_kes_period(
self,
cluster_lock_pool2: clusterlib.ClusterLib,
Expand Down Expand Up @@ -258,7 +258,7 @@ def _wait_epoch_chores(this_epoch: int):
)

@allure.link(helpers.get_vcs_link())
@pytest.mark.order(2)
@pytest.mark.order(7)
def test_update_valid_opcert(
self,
cluster_lock_pool2: clusterlib.ClusterLib,
Expand Down
4 changes: 2 additions & 2 deletions cardano_node_tests/tests/test_pools.py
Expand Up @@ -629,7 +629,7 @@ def _create_register_pool_tx_delegate_stake_tx(
return pool_creation_out


@pytest.mark.order(2)
@pytest.mark.order(7)
@pytest.mark.testnets
@pytest.mark.long
@pytest.mark.dbsync
Expand Down Expand Up @@ -1767,7 +1767,7 @@ def test_pool_registration_deregistration(
dbsync_utils.check_tx(cluster_obj=cluster, tx_raw_output=tx_raw_output)


@pytest.mark.order(2)
@pytest.mark.order(5)
class TestPoolCost:
"""Tests for stake pool cost."""

Expand Down
2 changes: 1 addition & 1 deletion cardano_node_tests/tests/test_staking.py
Expand Up @@ -324,7 +324,7 @@ def _get_reward_type_for_key_hash(key_hash: str, rec: list) -> List[str]:
return rew_types


@pytest.mark.order(1)
@pytest.mark.order(6)
@pytest.mark.long
class TestRewards:
"""Tests for checking expected rewards."""
Expand Down
2 changes: 1 addition & 1 deletion cardano_node_tests/tests/test_update_proposals.py
Expand Up @@ -36,7 +36,7 @@ def temp_dir(create_temp_dir: Path):
pytestmark = pytest.mark.usefixtures("temp_dir")


@pytest.mark.order(3)
@pytest.mark.order(8)
class TestUpdateProposals:
"""Tests for update proposals."""

Expand Down

0 comments on commit 2e41c7b

Please sign in to comment.