Skip to content

Commit

Permalink
test the new lazy check error
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneWallet committed Jan 17, 2025
1 parent cfd8655 commit f054798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multiversx_sdk/abi/enum_value_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ def test_set_payload_and_get_payload_using_names():
# With errors (missing names to discriminants dictionary)
with pytest.raises(
ValueError,
match="populating an enum from a native object requires the names to discriminants dict to be set",
match="converting a variant name to its discriminant requires the names to discriminants dict to be set",
):
EnumValue(fields_provider=lambda discriminant: []).set_payload(42)
EnumValue(fields_provider=lambda discriminant: []).set_payload("TypeA")

# Simple
value = EnumValue(
Expand Down

0 comments on commit f054798

Please sign in to comment.