Spaces:
Running
Running
Download plugins/_context_doctor/tests/conftest.py from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_context_doctor/tests/conftest.py
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/plugins/_context_doctor/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_context_doctor/tests/conftest.py
336 Bytes
| from __future__ import annotations | |
| from unittest.mock import patch | |
| import pytest | |
| _DEFAULT_CONFIG = { | |
| "update_log": False, | |
| "suppress_xml": True, | |
| } | |
| def _mock_plugin_config(): | |
| with patch( | |
| "helpers.plugins.get_plugin_config", | |
| return_value=_DEFAULT_CONFIG, | |
| ): | |
| yield | |