Download tests/test_security.py from gavinder/ai-decision-intelligence-platform: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/spaces/gavinder/ai-decision-intelligence-platform/resolve/main/tests/test_security.py
- Command line
-
hf download hf://spaces/gavinder/ai-decision-intelligence-platform/tests/test_security.py
-
curl -L -o test_security.py https://huggingface.co/spaces/gavinder/ai-decision-intelligence-platform/resolve/main/tests/test_security.py
255 Bytes
| from backend.core.security import get_password_hash, verify_password | |
| def test_password_hash_roundtrip(): | |
| password = "demo-pass-123" | |
| hashed = get_password_hash(password) | |
| assert hashed != password | |
| assert verify_password(password, hashed) | |