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