packages.valory.skills.transaction_settlement_abci.tests.test_models
Test the models.py module of the skill.
TestTransactionParams Objects
class TestTransactionParams()
Test TransactionParams class.
setup_class
def setup_class() -> None
Read the default config only once.
test_ensure_validate_timeout
def test_ensure_validate_timeout() -> None
Test that _ensure_validate_timeout raises when validate_timeout is lower than the allowed minimum.
test_gas_params
@pytest.mark.parametrize(
"gas_params",
[
{},
{
"gas_price": 1
},
{
"max_fee_per_gas": 1
},
{
"max_priority_fee_per_gas": 1
},
{
"gas_price": 1,
"max_fee_per_gas": 1,
"max_priority_fee_per_gas": 1,
},
],
)
def test_gas_params(gas_params: Dict[str, Any]) -> None
Test that gas params are being handled properly.