Spaces:
Sleeping
Sleeping
Download tests/test_audit_logger_lookup.py from Deign86/mathpulse-api-v3test: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/Deign86/mathpulse-api-v3test/resolve/main/tests/test_audit_logger_lookup.py
- Command line
-
hf download hf://spaces/Deign86/mathpulse-api-v3test/tests/test_audit_logger_lookup.py
-
curl -L -o test_audit_logger_lookup.py https://huggingface.co/spaces/Deign86/mathpulse-api-v3test/resolve/main/tests/test_audit_logger_lookup.py
478 Bytes
| """_get_audit_logger() returned None, so every access audit event raised 'NoneType' object is not callable.""" | |
| import inspect | |
| import os | |
| import sys | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| import main | |
| from services.audit_logger import log_audit_event | |
| def test_audit_logger_lookup_returns_the_event_writer() -> None: | |
| assert main._get_audit_logger() is log_audit_event | |
| assert inspect.iscoroutinefunction(main._get_audit_logger()) | |