Skip to content

Commit cafb0e0

Browse files
committed
test: assert on algopy types
1 parent 0859c36 commit cafb0e0

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

tests/state/test_local_state.py

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import contextlib
2-
1+
import algopy
32
import algopy_testing
43
import pytest
54
from algopy_testing._context_helpers.context_storage import algopy_testing_context
@@ -12,20 +11,20 @@
1211
@pytest.mark.parametrize(
1312
("method_name", "expected_type"),
1413
[
15-
("get_implicit_key_arc4_uint", algopy_testing.arc4.UInt64),
16-
("get_implicit_key_arc4_string", algopy_testing.arc4.String),
17-
("get_implicit_key_arc4_byte", algopy_testing.arc4.Byte),
18-
("get_implicit_key_arc4_bool", algopy_testing.arc4.Bool),
19-
("get_implicit_key_arc4_address", algopy_testing.arc4.Address),
20-
("get_implicit_key_arc4_uint128", algopy_testing.arc4.UInt128),
21-
("get_implicit_key_arc4_dynamic_bytes", algopy_testing.arc4.DynamicBytes),
22-
("get_arc4_uint", algopy_testing.arc4.UInt64),
23-
("get_arc4_string", algopy_testing.arc4.String),
24-
("get_arc4_byte", algopy_testing.arc4.Byte),
25-
("get_arc4_bool", algopy_testing.arc4.Bool),
26-
("get_arc4_address", algopy_testing.arc4.Address),
27-
("get_arc4_uint128", algopy_testing.arc4.UInt128),
28-
("get_arc4_dynamic_bytes", algopy_testing.arc4.DynamicBytes),
14+
("get_implicit_key_arc4_uint", algopy.arc4.UInt64),
15+
("get_implicit_key_arc4_string", algopy.arc4.String),
16+
("get_implicit_key_arc4_byte", algopy.arc4.Byte),
17+
("get_implicit_key_arc4_bool", algopy.arc4.Bool),
18+
("get_implicit_key_arc4_address", algopy.arc4.Address),
19+
("get_implicit_key_arc4_uint128", algopy.arc4.UInt128),
20+
("get_implicit_key_arc4_dynamic_bytes", algopy.arc4.DynamicBytes),
21+
("get_arc4_uint", algopy.arc4.UInt64),
22+
("get_arc4_string", algopy.arc4.String),
23+
("get_arc4_byte", algopy.arc4.Byte),
24+
("get_arc4_bool", algopy.arc4.Bool),
25+
("get_arc4_address", algopy.arc4.Address),
26+
("get_arc4_uint128", algopy.arc4.UInt128),
27+
("get_arc4_dynamic_bytes", algopy.arc4.DynamicBytes),
2928
],
3029
)
3130
def test_get_local_arc4_value(

0 commit comments

Comments
 (0)