Skip to content

Commit 0f34b7f

Browse files
committed
test: use correct method for overriding on_completion
1 parent cafb0e0 commit 0f34b7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/state/test_local_state.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import algopy_testing
33
import pytest
44
from algopy_testing._context_helpers.context_storage import algopy_testing_context
5-
from algopy_testing.enums import OnCompleteAction
65

76
from tests.artifacts.StateOps.contract import LocalStateContract
87
from tests.common import AVMInvoker
@@ -39,7 +38,7 @@ def test_get_local_arc4_value(
3938
contract = LocalStateContract()
4039

4140
with ctx.txn.create_group(
42-
gtxns=[ctx.any.txn.application_call(on_completion=OnCompleteAction.OptIn)]
41+
active_txn_overrides={"on_completion": algopy.OnCompleteAction.OptIn}
4342
):
4443
contract.opt_in()
4544
test_result = getattr(contract, method_name)(ctx.default_sender)

0 commit comments

Comments
 (0)