Update tests/firebase_test.py
Browse files- tests/firebase_test.py +4 -1
tests/firebase_test.py
CHANGED
@@ -18,6 +18,7 @@ MOCK_USER_DATA = {
|
|
18 |
"id": "uuid7-1",
|
19 |
"name": "Alice",
|
20 |
"score": 90,
|
|
|
21 |
"interview_question": "What are your strengths?",
|
22 |
"job_requirements": "Team player",
|
23 |
"feedback": "Excellent response.",
|
@@ -28,6 +29,7 @@ MOCK_USER_DATA = {
|
|
28 |
"id": "uuid7-2",
|
29 |
"name": "Bob",
|
30 |
"score": 85,
|
|
|
31 |
"interview_question": "Describe your work ethic.",
|
32 |
"job_requirements": "Self-starter",
|
33 |
"feedback": "Good examples provided.",
|
@@ -43,12 +45,13 @@ def test_write_user_data(mock_users_ref):
|
|
43 |
|
44 |
name = "Charlie"
|
45 |
score = 88
|
|
|
46 |
interview_question = "How do you handle challenges?"
|
47 |
job_requirements = "Problem solver"
|
48 |
feedback = "Well-articulated response."
|
49 |
|
50 |
entry_id = write_user_data(
|
51 |
-
name, score, interview_question, job_requirements, feedback
|
52 |
)
|
53 |
|
54 |
# Check that Firebase `set` was called with correct data
|
|
|
18 |
"id": "uuid7-1",
|
19 |
"name": "Alice",
|
20 |
"score": 90,
|
21 |
+
"job_title": "Software Engineer",
|
22 |
"interview_question": "What are your strengths?",
|
23 |
"job_requirements": "Team player",
|
24 |
"feedback": "Excellent response.",
|
|
|
29 |
"id": "uuid7-2",
|
30 |
"name": "Bob",
|
31 |
"score": 85,
|
32 |
+
"job_title": "Software Engineer",
|
33 |
"interview_question": "Describe your work ethic.",
|
34 |
"job_requirements": "Self-starter",
|
35 |
"feedback": "Good examples provided.",
|
|
|
45 |
|
46 |
name = "Charlie"
|
47 |
score = 88
|
48 |
+
job_title = "Software Engineer"
|
49 |
interview_question = "How do you handle challenges?"
|
50 |
job_requirements = "Problem solver"
|
51 |
feedback = "Well-articulated response."
|
52 |
|
53 |
entry_id = write_user_data(
|
54 |
+
name, score, interview_question, job_title, job_requirements, feedback
|
55 |
)
|
56 |
|
57 |
# Check that Firebase `set` was called with correct data
|