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
{{ message }}
Repository navigation
Commit f0c76f3
Browse filesBrowse the repository at this point in the historyBrowse files
raiseException(f'Not possible to retrieve "{enumValue}" enum value from {ReflectionHelper.getName(enumClass)}: {enumEqList} enum. Enum.__enumMap__ = {enumMap}')
101
+
raiseException(f'Not possible to retrieve "{enumValue}" of type: {type(enumValue)}enum value from {ReflectionHelper.getName(enumClass)}: {enumEqList} enum. Enum.__enumMap__ = {enumMap}')
Copy file name to clipboardExpand all lines: python_framework/api/test/api/src/annotation/EnumAnnotationTest.py
+44-3Lines changed: 44 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -369,10 +369,10 @@ class MyEnumTest :
369
369
thirdTestExteption=e
370
370
371
371
# assert
372
-
print(str(firstTestExteption))
373
-
print(str(secondTestExteption))
372
+
# print(str(firstTestExteption))
373
+
# print(str(secondTestExteption))
374
374
assert'''Not possible to implement "ONE" enum value in MyEnumTest: ['ONE(value:ONE)'] enum'''==str(firstTestExteption)
375
-
assert'''Not possible to retrieve "another" enum value from MyOtherEnumTest: ['ONE(value:ONE)', 'TWO(value:TWO)'] enum. Enum.__enumMap__ = {'ONE': ONE, 'TWO': TWO}'''==str(secondTestExteption)
375
+
assert'''Not possible to retrieve "another" of type: <class 'str'> enum value from MyOtherEnumTest: ['ONE(value:ONE)', 'TWO(value:TWO)'] enum. Enum.__enumMap__ = {'ONE': 'ONE', 'TWO': 'TWO'}'''==str(secondTestExteption)
376
376
assert"'EnumItem' object has no attribute 'enumValue'"==str(thirdTestExteption)
0 commit comments