Skip to content

Commit 781d0a7

Browse files
rootroot
authored andcommitted
test: assert code requirement keeps next lesson locked
1 parent 10f3e2e commit 781d0a7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/test_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def test_lesson_requires_correct_code_for_completion() -> None:
9494
response = client.post("/api/lessons/hello/submit", json={"answers": two_without_code})
9595
assert response.json()["passed"] is False
9696
assert response.json()["message"] == "Для зачёта нужно решить задачу на код"
97+
assert client.get("/api/lessons/variables").status_code == 403
9798

9899
code_and_one_other = [
99100
{"question_id": "hello-print", "answer": "print('неверно')"},

0 commit comments

Comments
 (0)