You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/unit/type_safe/test_Type_Safe.py
-11Lines changed: 0 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1085,17 +1085,6 @@ def label(self, value):
1085
1085
test_class.data=123# confirm that type safety is still working on the main class
1086
1086
1087
1087
deftest_validate_type_immutability(self): # Tests type immutability validation
1088
-
# class Simple_Type(Type_Safe):
1089
-
# valid_int : int = 42 # valid immutable type
1090
-
# valid_str : str = 'abc' # valid immutable type
1091
-
# valid_bool : bool = True # valid immutable type
1092
-
# valid_tuple : tuple = (1,2) # valid immutable type
1093
-
#
1094
-
# simple = Simple_Type() # Should work fine with valid types
1095
-
# assert simple.valid_int == 42
1096
-
# assert simple.valid_str == 'abc'
1097
-
# assert simple.valid_bool == True
1098
-
# assert simple.valid_tuple == (1,2)
1099
1088
1100
1089
withpytest.raises(ValueError, match="variable 'invalid_list' is defined as type '<class 'list'>' which is not supported by Type_Safe" ): # Test invalid mutable type
0 commit comments