File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -471,10 +471,10 @@ class Test1(ArrayCBORSerializable):
471471def test_restore_typed_list_primitive ():
472472 @dataclass
473473 class Test1 (ArrayCBORSerializable ):
474- a : list [str , int ]
474+ a : List [str ]
475475
476476 with pytest .raises (DeserializeException ):
477- t = Test1 .from_primitive (["a" ])
477+ t = Test1 .from_primitive ([[ 1 ] ])
478478
479479
480480def test_restore_typed_plutus_script_primitive ():
@@ -500,19 +500,10 @@ class Test2(ArrayCBORSerializable):
500500 assert isinstance (t .a , Test1 )
501501
502502
503- def test_restore_typed_dict_primitive ():
504- @dataclass
505- class Test1 (ArrayCBORSerializable ):
506- a : dict [str ]
507-
508- with pytest .raises (DeserializeException ):
509- t = Test1 .from_primitive ([{"a" : 123 }])
510-
511-
512503def test_restore_typed_not_dict_primitive ():
513504 @dataclass
514505 class Test1 (ArrayCBORSerializable ):
515- a : dict [str , int ]
506+ a : Dict [str , int ]
516507
517508 with pytest .raises (DeserializeException ):
518509 t = Test1 .from_primitive (["a" ])
You can’t perform that action at this time.
0 commit comments