(plugin: PydanticPluginProtocol)
| 24 | |
| 25 | @contextlib.contextmanager |
| 26 | def install_plugin(plugin: PydanticPluginProtocol) -> Generator[None, None, None]: |
| 27 | _plugins[plugin.__class__.__qualname__] = plugin |
| 28 | try: |
| 29 | yield |
| 30 | finally: |
| 31 | _plugins.clear() |
| 32 | |
| 33 | |
| 34 | def test_on_validate_json_on_success() -> None: |
no test coverage detected