2626from protovalidate .internal import extra_func
2727from protovalidate .internal .cel_field_presence import InterpretedRunner
2828
29- # Version of the cel-spec that this implementation is conformant with
30- # This should be kept in sync with the version in the Makefile
29+ # Version of the cel-spec that this implementation is conformant with.
30+ # This should be kept in sync with the version in ../ Makefile.
3131CEL_SPEC_VERSION = "v0.24.0"
3232
3333skipped_tests = [
3636 # This throws an error like:
3737 # "no such overload: IntType(0) <class 'celpy.celtypes.IntType'> !=
3838 # BoolType(False) <class 'celpy.celtypes.BoolType'>",))
39+ # TODO: Check if this bug is fixed in newer versions of cel-python.
3940 "map support (all key types)" ,
4041]
4142skipped_error_tests = [
@@ -111,8 +112,6 @@ def test_format_successes(self):
111112 prog = self ._env .program (ast , functions = extra_func .make_extra_funcs ())
112113
113114 bindings = build_variables (test .bindings )
114- # Ideally we should use pytest parametrize instead of subtests, but
115- # that would require refactoring other tests also.
116115 with self .subTest (test .name ):
117116 try :
118117 result = prog .evaluate (bindings )
@@ -135,8 +134,6 @@ def test_format_errors(self):
135134 prog = self ._env .program (ast , functions = extra_func .make_extra_funcs ())
136135
137136 bindings = build_variables (test .bindings )
138- # Ideally we should use pytest parametrize instead of subtests, but
139- # that would require refactoring other tests also.
140137 with self .subTest (test .name ):
141138 try :
142139 prog .evaluate (bindings )
0 commit comments