Skip to content

Commit

Permalink
test: rename param
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Oct 4, 2023
1 parent f8f2fd4 commit 614980d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ def test_gas_limit(bsc):
assert bsc.config.local.gas_limit == "max"


@pytest.mark.parametrize("type", (None, 0, "0x0"))
def test_create_transaction(bsc, type, eth_tester_provider):
tx = bsc.create_transaction(type=type)
@pytest.mark.parametrize("tx_type", (None, 0, "0x0"))
def test_create_transaction(bsc, tx_type, eth_tester_provider):
tx = bsc.create_transaction(type=tx_type)
assert tx.type == TransactionType.STATIC.value
assert tx.gas_limit == eth_tester_provider.max_gas


@pytest.mark.parametrize(
"type_",
"tx_type",
(TransactionType.STATIC.value, TransactionType.DYNAMIC.value),
)
def test_encode_transaction(type_, bsc, eth_tester_provider):
def test_encode_transaction(tx_type, bsc, eth_tester_provider):
abi = MethodABI.parse_obj(
{
"type": "function",
Expand All @@ -29,5 +29,5 @@ def test_encode_transaction(type_, bsc, eth_tester_provider):
}
)
address = "0x274b028b03A250cA03644E6c578D81f019eE1323"
actual = bsc.encode_transaction(address, abi, sender=address, type=type_)
actual = bsc.encode_transaction(address, abi, sender=address, type=tx_type)
assert actual.gas_limit == eth_tester_provider.max_gas

0 comments on commit 614980d

Please sign in to comment.