(
self, py_input, strict: bool | None = None, context: Any = None, extra: ExtraBehavior | None = None
)
| 74 | return self.validator.validate_json(json_str, strict=strict, context=context) |
| 75 | |
| 76 | def validate_test( |
| 77 | self, py_input, strict: bool | None = None, context: Any = None, extra: ExtraBehavior | None = None |
| 78 | ): |
| 79 | if self.validator_type == 'json': |
| 80 | return self.validator.validate_json( |
| 81 | json.dumps(py_input, default=json_default), |
| 82 | strict=strict, |
| 83 | extra=extra, |
| 84 | context=context, |
| 85 | ) |
| 86 | else: |
| 87 | assert self.validator_type == 'python', self.validator_type |
| 88 | return self.validator.validate_python(py_input, strict=strict, context=context, extra=extra) |
| 89 | |
| 90 | def isinstance_test(self, py_input, strict: bool | None = None, context: Any = None): |
| 91 | if self.validator_type == 'json': |
no test coverage detected