Spaces:
Running

File size: 674 Bytes
4b10b93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from uuid import uuid4


def test_interview_flow(client, mock_llm):
    start_payload = {
        "candidate_id": str(uuid4()),
        "resume_id": str(uuid4()),
        "campaign_id": str(uuid4()),
        "role": "Backend Engineer",
        "campaign_id": "test-campaign-1",
    }

    start = client.post("/api/interviews/start", json=start_payload)
    assert start.status_code == 201

    interview_id = start.get_json()["interview_id"]

    handle = client.post(
        "/api/interviews/handle",
        json={
            "interview_id": interview_id,
            "answer": "Python is a programming language",
        },
    )

    assert handle.status_code == 200