add format version to stepic format
[idea/community.git] / python / educational-core / student / testData / stepic / 1.json
1 {
2   "meta": {
3     "page": 1,
4     "has_next": false,
5     "has_previous": false
6   },
7   "steps": [
8     {
9       "id": 98626,
10       "lesson": 13416,
11       "position": 1,
12       "status": "ready",
13       "block": {
14         "name": "pycharm",
15         "text": "\nTraditionally the first program you write in any programming language is <code>\"Hello World!\"</code>.\n<br><br>\nIntroduce yourself to the World.\n<br>\n",
16         "video": null,
17         "animation": null,
18         "options": {
19           "test": [
20             {
21               "text": "from test_helper import run_common_tests, failed, passed, get_answer_placeholders\n\n\ndef test_ASCII():\n    windows = get_answer_placeholders()\n    for window in windows:\n        all_ascii = all(ord(c) < 128 for c in window)\n        if not all_ascii:\n            failed(\"Please use only English characters this time.\")\n            return\n    passed()\n\n\ndef test_is_alpha():\n    window = get_answer_placeholders()[0]\n    is_multiline = window.find(\"\\n\")\n    if is_multiline != -1:\n        window = window[:is_multiline-1]\n    splitted = window.split()\n    for s in splitted:\n        if not s.isalpha():\n            failed(\"Please use only English characters this time.\")\n            return\n\n    passed()\n\n\nif __name__ == '__main__':\n    test_ASCII()\n    run_common_tests(\"You should enter your name\")\n    test_is_alpha()\n\n\n",
22               "name": "tests.py"
23             }
24           ],
25           "files": [
26             {
27               "placeholders": [
28                 {
29                   "hint": "[\"Type your name here.\"]",
30                   "start": 32,
31                   "length": 14,
32                   "possible_answer": "Liana",
33                   "line": -1
34                 }
35               ],
36               "text": "print(\"Hello, world! My name is type your name\")\n",
37               "name": "hello_world.py"
38             }
39           ],
40           "title": "Our first program"
41         },
42         "subtitle_files": []
43       },
44       "actions": {
45         "submit": "#"
46       },
47       "progress": "77-98626",
48       "subscriptions": [
49         "31-77-98626",
50         "30-77-98626"
51       ],
52       "instruction": null,
53       "session": null,
54       "instruction_type": null,
55       "viewed_by": 46,
56       "passed_by": 2433,
57       "correct_ratio": 0.7805243445692884,
58       "worth": null,
59       "is_solutions_unlocked": false,
60       "solutions_unlocked_attempts": 3,
61       "has_submissions_restrictions": false,
62       "max_submissions_count": 3,
63       "create_date": "2016-04-11T15:25:39Z",
64       "update_date": "2016-08-03T11:05:13Z",
65       "discussions_count": 0,
66       "discussion_proxy": "77-98626-1",
67       "discussion_threads": [
68         "77-98626-1"
69       ]
70     }
71   ]
72 }