1 parent 10f3e2e commit 781d0a7Copy full SHA for 781d0a7
1 file changed
tests/test_api.py
@@ -94,6 +94,7 @@ def test_lesson_requires_correct_code_for_completion() -> None:
94
response = client.post("/api/lessons/hello/submit", json={"answers": two_without_code})
95
assert response.json()["passed"] is False
96
assert response.json()["message"] == "Для зачёта нужно решить задачу на код"
97
+ assert client.get("/api/lessons/variables").status_code == 403
98
99
code_and_one_other = [
100
{"question_id": "hello-print", "answer": "print('неверно')"},
0 commit comments