Spaces:
Running
Running
Download app/tests/load/test_interview_load.py from fallingbody/Mockai: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/fallingbody/Mockai/resolve/main/app/tests/load/test_interview_load.py
- Command line
-
hf download hf://spaces/fallingbody/Mockai/app/tests/load/test_interview_load.py
-
curl -L -o test_interview_load.py https://huggingface.co/spaces/fallingbody/Mockai/resolve/main/app/tests/load/test_interview_load.py
492 Bytes
| from uuid import uuid4 | |
| def test_multiple_interview_sessions(client, mock_llm): | |
| for _ in range(10): | |
| response = client.post( | |
| "/api/interviews/start", | |
| json={ | |
| "candidate_id": str(uuid4()), | |
| "resume_id": str(uuid4()), | |
| "campaign_id": str(uuid4()), | |
| "role": "Backend Engineer", | |
| "campaign_id": "load-test-campaign", | |
| }, | |
| ) | |
| assert response.status_code == 201 | |