Spaces:
Sleeping
Sleeping
Download tests/utilities/test_tests.py from purecipher/xsecuremcp: direct link, hf CLI and curl.
- Browser
- Download file 355 Bytes
-
https://huggingface.co/spaces/purecipher/xsecuremcp/resolve/main/tests/utilities/test_tests.py
- Command line
-
hf download hf://spaces/purecipher/xsecuremcp/tests/utilities/test_tests.py
-
curl -L -o test_tests.py https://huggingface.co/spaces/purecipher/xsecuremcp/resolve/main/tests/utilities/test_tests.py
355 Bytes
| import fastmcp | |
| from fastmcp.utilities.tests import temporary_settings | |
| class TestTemporarySettings: | |
| def test_temporary_settings(self): | |
| assert fastmcp.settings.log_level == "DEBUG" | |
| with temporary_settings(log_level="ERROR"): | |
| assert fastmcp.settings.log_level == "ERROR" | |
| assert fastmcp.settings.log_level == "DEBUG" | |