Skip to content

Commit 0bcc9b8

Browse files
committed
Remove impossible test cases
1 parent 5ad2041 commit 0bcc9b8

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

test/pycardano/test_serialization.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,10 @@ class Test1(ArrayCBORSerializable):
471471
def 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

480480
def 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-
512503
def 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"])

0 commit comments

Comments
 (0)