We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb6742 commit 4f55b35Copy full SHA for 4f55b35
templates/python/tests/package/test_exception.py.twig
@@ -0,0 +1,12 @@
1
+from ...{{ spec.title | caseSnake}}.exception import ErrorType
2
+import unittest
3
+
4
5
+class TestErrorEnum(unittest.TestCase):
6
7
+ def test_enum_values(self):
8
+ {% for error in spec.definitions.appwriteException.errorTypes %}
9
+ self.assertEqual(ErrorType.{{ error.type|title|replace({'_': ''}) }}.value, '{{ error.type }}')
10
+ {% endfor %}
11
12
0 commit comments