Commit ab6aea9f by brianhw

Merge pull request #72 from edx/brian/fix_fixture

Update fixture for answer_distribution. 
parents ea030bf0 073e4d32
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
"fields": { "fields": {
"answer_value": "36.02736", "answer_value": "36.02736",
"correct": false, "correct": false,
"count": 1, "first_response_count": 0,
"last_response_count": 1,
"course_id": "EarthSciences/GP202/Spring2014", "course_id": "EarthSciences/GP202/Spring2014",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228", "module_id": "i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228",
...@@ -13,14 +14,15 @@ ...@@ -13,14 +14,15 @@
"problem_display_name": "Earth Science Question", "problem_display_name": "Earth Science Question",
"question_text": "Enter your answer:" "question_text": "Enter your answer:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 1 "pk": 1
}, },
{ {
"fields": { "fields": {
"answer_value": "33.0", "answer_value": "33.0",
"correct": false, "correct": false,
"count": 1, "first_response_count": 0,
"last_response_count": 1,
"course_id": "EarthSciences/GP202/Spring2014", "course_id": "EarthSciences/GP202/Spring2014",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228", "module_id": "i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228",
...@@ -30,14 +32,15 @@ ...@@ -30,14 +32,15 @@
"problem_display_name": "Earth Science Question", "problem_display_name": "Earth Science Question",
"question_text": "Enter your answer:" "question_text": "Enter your answer:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 2 "pk": 2
}, },
{ {
"fields": { "fields": {
"answer_value": "27.51936482", "answer_value": "27.51936482",
"correct": true, "correct": true,
"count": 1, "first_response_count": 0,
"last_response_count": 1,
"course_id": "EarthSciences/GP202/Spring2014", "course_id": "EarthSciences/GP202/Spring2014",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228", "module_id": "i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228",
...@@ -47,14 +50,15 @@ ...@@ -47,14 +50,15 @@
"problem_display_name": "Earth Science Question", "problem_display_name": "Earth Science Question",
"question_text": "Enter your answer:" "question_text": "Enter your answer:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 3 "pk": 3
}, },
{ {
"fields": { "fields": {
"answer_value": "28.65", "answer_value": "28.65",
"correct": true, "correct": true,
"count": 1, "first_response_count": 0,
"last_response_count": 1,
"course_id": "EarthSciences/GP202/Spring2014", "course_id": "EarthSciences/GP202/Spring2014",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228", "module_id": "i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228",
...@@ -64,14 +68,15 @@ ...@@ -64,14 +68,15 @@
"problem_display_name": "Earth Science Question", "problem_display_name": "Earth Science Question",
"question_text": "Enter your answer:" "question_text": "Enter your answer:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 4 "pk": 4
}, },
{ {
"fields": { "fields": {
"answer_value": "line 15: mean(glm.pred==Direction)", "answer_value": "line 15: mean(glm.pred==Direction)",
"correct": true, "correct": true,
"count": 95, "first_response_count": 0,
"last_response_count": 95,
"course_id": "HumanitiesScience/StatLearning/Winter2014", "course_id": "HumanitiesScience/StatLearning/Winter2014",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702", "module_id": "i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702",
...@@ -81,14 +86,15 @@ ...@@ -81,14 +86,15 @@
"problem_display_name": null, "problem_display_name": null,
"question_text": null "question_text": null
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 5 "pk": 5
}, },
{ {
"fields": { "fields": {
"answer_value": "line 22: Direction.2005=Smarket$Direction[!train]", "answer_value": "line 22: Direction.2005=Smarket$Direction[!train]",
"correct": false, "correct": false,
"count": 1, "first_response_count": 0,
"last_response_count": 1,
"course_id": "HumanitiesScience/StatLearning/Winter2014", "course_id": "HumanitiesScience/StatLearning/Winter2014",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702", "module_id": "i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702",
...@@ -98,14 +104,15 @@ ...@@ -98,14 +104,15 @@
"problem_display_name": null, "problem_display_name": null,
"question_text": null "question_text": null
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 6 "pk": 6
}, },
{ {
"fields": { "fields": {
"answer_value": "line 30: table(glm.pred,Direction.2005)", "answer_value": "line 30: table(glm.pred,Direction.2005)",
"correct": false, "correct": false,
"count": 1, "first_response_count": 0,
"last_response_count": 1,
"course_id": "HumanitiesScience/StatLearning/Winter2014", "course_id": "HumanitiesScience/StatLearning/Winter2014",
"created": "2014-06-24T17:13:12", "created": "2014-06-24T17:13:12",
"module_id": "i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702", "module_id": "i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702",
...@@ -115,14 +122,15 @@ ...@@ -115,14 +122,15 @@
"problem_display_name": null, "problem_display_name": null,
"question_text": null "question_text": null
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 7 "pk": 7
}, },
{ {
"fields": { "fields": {
"answer_value": "5.02", "answer_value": "5.02",
"correct": true, "correct": true,
"count": 95, "first_response_count": 0,
"last_response_count": 95,
"course_id": "edX/DemoX/Demo_Course", "course_id": "edX/DemoX/Demo_Course",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36", "module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36",
...@@ -132,14 +140,15 @@ ...@@ -132,14 +140,15 @@
"problem_display_name": "Example problem", "problem_display_name": "Example problem",
"question_text": "Enter an answer:" "question_text": "Enter an answer:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 8 "pk": 8
}, },
{ {
"fields": { "fields": {
"answer_value": "62", "answer_value": "62",
"correct": false, "correct": false,
"count": 13, "first_response_count": 0,
"last_response_count": 13,
"course_id": "edX/DemoX/Demo_Course", "course_id": "edX/DemoX/Demo_Course",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36", "module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36",
...@@ -149,14 +158,15 @@ ...@@ -149,14 +158,15 @@
"problem_display_name": "Example problem", "problem_display_name": "Example problem",
"question_text": "Enter an answer:" "question_text": "Enter an answer:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 9 "pk": 9
}, },
{ {
"fields": { "fields": {
"answer_value": "10.2", "answer_value": "10.2",
"correct": false, "correct": false,
"count": 100, "first_response_count": 0,
"last_response_count": 100,
"course_id": "edX/DemoX/Demo_Course", "course_id": "edX/DemoX/Demo_Course",
"created": "2014-06-24T17:13:12", "created": "2014-06-24T17:13:12",
"module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36", "module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36",
...@@ -166,14 +176,15 @@ ...@@ -166,14 +176,15 @@
"problem_display_name": "Example problem", "problem_display_name": "Example problem",
"question_text": "Enter an answer:" "question_text": "Enter an answer:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 10 "pk": 10
}, },
{ {
"fields": { "fields": {
"answer_value": null, "answer_value": null,
"correct": true, "correct": true,
"count": 5, "first_response_count": 0,
"last_response_count": 5,
"course_id": "edX/DemoX/Demo_Course", "course_id": "edX/DemoX/Demo_Course",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36", "module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36",
...@@ -183,14 +194,15 @@ ...@@ -183,14 +194,15 @@
"problem_display_name": "Example problem", "problem_display_name": "Example problem",
"question_text": "Randomized answer" "question_text": "Randomized answer"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 11 "pk": 11
}, },
{ {
"fields": { "fields": {
"answer_value": null, "answer_value": null,
"correct": true, "correct": true,
"count": 213, "first_response_count": 0,
"last_response_count": 213,
"course_id": "edX/DemoX/Demo_Course", "course_id": "edX/DemoX/Demo_Course",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36", "module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36",
...@@ -200,7 +212,7 @@ ...@@ -200,7 +212,7 @@
"problem_display_name": "Example problem", "problem_display_name": "Example problem",
"question_text": "Randomized answer" "question_text": "Randomized answer"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 12 "pk": 12
}, },
...@@ -208,7 +220,8 @@ ...@@ -208,7 +220,8 @@
"fields": { "fields": {
"answer_value": "North America", "answer_value": "North America",
"correct": true, "correct": true,
"count": 95, "first_response_count": 0,
"last_response_count": 95,
"course_id": "edX/DemoX/Demo_Course", "course_id": "edX/DemoX/Demo_Course",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36", "module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36",
...@@ -218,14 +231,15 @@ ...@@ -218,14 +231,15 @@
"problem_display_name": "Example problem", "problem_display_name": "Example problem",
"question_text": "Select from the choices below:" "question_text": "Select from the choices below:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 13 "pk": 13
}, },
{ {
"fields": { "fields": {
"answer_value": "Africa", "answer_value": "Africa",
"correct": false, "correct": false,
"count": 13, "first_response_count": 0,
"last_response_count": 13,
"course_id": "edX/DemoX/Demo_Course", "course_id": "edX/DemoX/Demo_Course",
"created": "2014-06-24T17:13:11", "created": "2014-06-24T17:13:11",
"module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36", "module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36",
...@@ -235,14 +249,15 @@ ...@@ -235,14 +249,15 @@
"problem_display_name": "Example problem", "problem_display_name": "Example problem",
"question_text": "Select from the choices below:" "question_text": "Select from the choices below:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 14 "pk": 14
}, },
{ {
"fields": { "fields": {
"answer_value": "Asia", "answer_value": "Asia",
"correct": false, "correct": false,
"count": 100, "first_response_count": 0,
"last_response_count": 100,
"course_id": "edX/DemoX/Demo_Course", "course_id": "edX/DemoX/Demo_Course",
"created": "2014-06-24T17:13:12", "created": "2014-06-24T17:13:12",
"module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36", "module_id": "i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36",
...@@ -252,7 +267,7 @@ ...@@ -252,7 +267,7 @@
"problem_display_name": "Example problem", "problem_display_name": "Example problem",
"question_text": "Select from the choices below:" "question_text": "Select from the choices below:"
}, },
"model": "v0.problemresponseanswerdistribution", "model": "v0.problemfirstlastresponseanswerdistribution",
"pk": 15 "pk": 15
} }
......
...@@ -184,7 +184,7 @@ class Command(BaseCommand): ...@@ -184,7 +184,7 @@ class Command(BaseCommand):
course_id = 'edX/DemoX/Demo_Course' course_id = 'edX/DemoX/Demo_Course'
video_id = '0fac49ba' video_id = '0fac49ba'
video_module_id = 'i4x-edX-DemoX-video-5c90cffecd9b48b188cbfea176bf7fe9' video_module_id = 'i4x-edX-DemoX-video-5c90cffecd9b48b188cbfea176bf7fe9'
start_date = datetime.datetime(year=2014, month=1, day=1, tzinfo=timezone.utc) start_date = datetime.datetime(year=2015, month=1, day=1, tzinfo=timezone.utc)
num_weeks = options['num_weeks'] num_weeks = options['num_weeks']
if num_weeks: if num_weeks:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment