Spaces:
Build error
Build error
Greg Thompson
commited on
Commit
•
8fd1f61
1
Parent(s):
47c0422
Update simulated requests
Browse files- scripts/make_request.py +28 -0
scripts/make_request.py
CHANGED
@@ -71,6 +71,34 @@ def run_simulated_request(endpoint, sample_answer, context=None):
|
|
71 |
# run_simulated_request('manager', '')
|
72 |
run_simulated_request('manager', 'add')
|
73 |
run_simulated_request('manager', 'subtract')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
74 |
# run_simulated_request('manager', 'exit')
|
75 |
|
76 |
|
|
|
71 |
# run_simulated_request('manager', '')
|
72 |
run_simulated_request('manager', 'add')
|
73 |
run_simulated_request('manager', 'subtract')
|
74 |
+
run_simulated_request("question", {
|
75 |
+
'number_correct': 0,
|
76 |
+
'number_incorrect': 0,
|
77 |
+
'level': 'easy'
|
78 |
+
})
|
79 |
+
run_simulated_request("hint", {
|
80 |
+
'question_numbers': [1, 2, 3],
|
81 |
+
'right_answer': 3,
|
82 |
+
'number_correct': 0,
|
83 |
+
'number_incorrect': 0,
|
84 |
+
'level': 'easy',
|
85 |
+
'hints_used': 0
|
86 |
+
})
|
87 |
+
run_simulated_request("generate_question", {
|
88 |
+
'level': 'medium'
|
89 |
+
})
|
90 |
+
run_simulated_request("numbers_by_level", {
|
91 |
+
'level': 'medium'
|
92 |
+
})
|
93 |
+
run_simulated_request("number_sequence", {
|
94 |
+
"current_number": 10,
|
95 |
+
"ordinal_number": 2,
|
96 |
+
"times": 1
|
97 |
+
})
|
98 |
+
run_simulated_request("level", {
|
99 |
+
"current_level": "hard",
|
100 |
+
"level_up": False
|
101 |
+
})
|
102 |
# run_simulated_request('manager', 'exit')
|
103 |
|
104 |
|