Skip to content

Commit

Permalink
test: inc failing part
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jan 17, 2024
1 parent ec80ede commit 955624a
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions tests/test_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,20 @@ def test_snapshot_and_revert(connected_provider):
assert block_1.hash == block_3.hash


@pytest.mark.parametrize("tx_kwargs", [
{}, # NO KWARGS CASE: Should default to type 2
{"type": 0},
{"type": 0, "gas_price": 0},
# TODO: Uncomment after ape 0.7.5 is released
# {"type": 1},
# {"type": 1, "gas_price": 0},
{"type": 2},
{"type": 2, "max_priority_fee": 0},
{"type": 2, "base_fee": 0, "max_priority_fee": 0},
])
@pytest.mark.parametrize(
"tx_kwargs",
[
{}, # NO KWARGS CASE: Should default to type 2
{"type": 0},
{"type": 0, "gas_price": 0},
# TODO: Uncomment after ape 0.7.5 is released
# {"type": 1},
# {"type": 1, "gas_price": 0},
{"type": 2},
{"type": 2, "max_priority_fee": 0},
{"type": 2, "base_fee": 0, "max_priority_fee": 0},
],
)
def test_unlock_account(connected_provider, contract_a, accounts, tx_kwargs):
actual = connected_provider.unlock_account(TEST_WALLET_ADDRESS)
assert actual is True
Expand Down

0 comments on commit 955624a

Please sign in to comment.