Skip to content

Commit 6d0de55

Browse files
committed
🥢 nit: named parameters
1 parent e8b5ca4 commit 6d0de55

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_opcodes.py

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
pytestmark = pytest.mark.valid_from("Amsterdam")
4444

4545

46-
@pytest.mark.parametrize("fails_at_sstore", [True, False])
46+
@pytest.mark.parametrize(
47+
"fails_at_sstore", [True, False], ids=["oog_at_sstore", "successful_sstore"]
48+
)
4749
def test_bal_sstore_and_oog(
4850
pre: Alloc,
4951
blockchain_test: BlockchainTestFiller,
@@ -114,7 +116,7 @@ def test_bal_sstore_and_oog(
114116
)
115117

116118

117-
@pytest.mark.parametrize("fails_at_sload", [True, False])
119+
@pytest.mark.parametrize("fails_at_sload", [True, False], ids=["oog_at_sload", "successful_sload"])
118120
def test_bal_sload_and_oog(
119121
pre: Alloc,
120122
blockchain_test: BlockchainTestFiller,
@@ -177,7 +179,9 @@ def test_bal_sload_and_oog(
177179
)
178180

179181

180-
@pytest.mark.parametrize("fails_at_balance", [True, False])
182+
@pytest.mark.parametrize(
183+
"fails_at_balance", [True, False], ids=["oog_at_balance", "successful_balance"]
184+
)
181185
def test_bal_balance_and_oog(
182186
pre: Alloc,
183187
blockchain_test: BlockchainTestFiller,
@@ -240,7 +244,9 @@ def test_bal_balance_and_oog(
240244
)
241245

242246

243-
@pytest.mark.parametrize("fails_at_extcodesize", [True, False])
247+
@pytest.mark.parametrize(
248+
"fails_at_extcodesize", [True, False], ids=["oog_at_extcodesize", "successful_extcodesize"]
249+
)
244250
def test_bal_extcodesize_and_oog(
245251
pre: Alloc,
246252
blockchain_test: BlockchainTestFiller,
@@ -307,7 +313,7 @@ def test_bal_extcodesize_and_oog(
307313
)
308314

309315

310-
@pytest.mark.parametrize("fails_at_call", [True, False])
316+
@pytest.mark.parametrize("fails_at_call", [True, False], ids=["oog_at_call", "successful_call"])
311317
def test_bal_call_and_oog(
312318
pre: Alloc,
313319
blockchain_test: BlockchainTestFiller,
@@ -375,7 +381,9 @@ def test_bal_call_and_oog(
375381
)
376382

377383

378-
@pytest.mark.parametrize("fails_at_delegatecall", [True, False])
384+
@pytest.mark.parametrize(
385+
"fails_at_delegatecall", [True, False], ids=["oog_at_delegatecall", "successful_delegatecall"]
386+
)
379387
def test_bal_delegatecall_and_oog(
380388
pre: Alloc,
381389
blockchain_test: BlockchainTestFiller,
@@ -448,7 +456,9 @@ def test_bal_delegatecall_and_oog(
448456
)
449457

450458

451-
@pytest.mark.parametrize("fails_at_extcodecopy", [True, False])
459+
@pytest.mark.parametrize(
460+
"fails_at_extcodecopy", [True, False], ids=["oog_at_extcodecopy", "successful_extcodecopy"]
461+
)
452462
def test_bal_extcodecopy_and_oog(
453463
pre: Alloc,
454464
blockchain_test: BlockchainTestFiller,

0 commit comments

Comments
 (0)