Skip to content

Commit

Permalink
Merge pull request #45580 from code-dot-org/eptools/dani/assignment-t…
Browse files Browse the repository at this point in the history
…est-data

Update helper data for teacher dashboard assignment tests
  • Loading branch information
dmcavoy committed Mar 31, 2022
2 parents 40fd631 + d5b7507 commit 7d05e6d
Showing 1 changed file with 106 additions and 9 deletions.
115 changes: 106 additions & 9 deletions apps/src/templates/teacherDashboard/teacherDashboardTestHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,13 @@ export const courseOfferings = {
display_name: 'Course A',
category: 'csf',
is_featured: false,
participant_audience: 'student',
course_versions: {
1: {
id: 1,
key: '2017',
version_year: '2017',
content_root_id: 10,
content_root_id: 1,
name: 'Course A',
path: '/s/coursea-2017',
type: 'Script',
Expand All @@ -117,7 +118,7 @@ export const courseOfferings = {
id: 2,
key: '2018',
version_year: '2018',
content_root_id: 11,
content_root_id: 2,
name: 'Course A',
path: '/s/coursea-2018',
type: 'Script',
Expand All @@ -141,12 +142,13 @@ export const courseOfferings = {
display_name: 'Computer Science Discoveries',
category: 'full_course',
is_featured: false,
participant_audience: 'student',
course_versions: {
3: {
id: 3,
key: '2017',
version_year: "'17-'18",
content_root_id: 12,
content_root_id: 52,
name: 'CS Discoveries 2017',
path: '/courses/csd-2017',
type: 'UnitGroup',
Expand Down Expand Up @@ -176,7 +178,7 @@ export const courseOfferings = {
id: 4,
key: '2018',
version_year: "'18-'19",
content_root_id: 13,
content_root_id: 51,
name: 'CS Discoveries 2018',
path: '/courses/csd-2018',
type: 'UnitGroup',
Expand Down Expand Up @@ -209,12 +211,13 @@ export const courseOfferings = {
display_name: 'Computer Science A',
category: 'full_course',
is_featured: false,
participant_audience: 'student',
course_versions: {
5: {
id: 5,
key: '2022',
version_year: '2022',
content_root_id: 14,
content_root_id: 50,
name: 'CS A',
path: '/courses/csa-2022',
type: 'UnitGroup',
Expand Down Expand Up @@ -247,12 +250,13 @@ export const courseOfferings = {
display_name: 'Flappy',
category: 'hoc',
is_featured: false,
participant_audience: 'student',
course_versions: {
6: {
id: 6,
key: 'unversioned',
version_year: 'unversioned',
content_root_id: 15,
content_root_id: 9,
name: 'Flappy',
path: '/s/flappy',
type: 'Script',
Expand Down Expand Up @@ -282,7 +286,7 @@ export const courseOfferings = {
id: 7,
key: 'unversioned',
version_year: 'unversioned',
content_root_id: 16,
content_root_id: 10,
name: 'Hello World',
path: '/s/hello-world',
type: 'Script',
Expand Down Expand Up @@ -312,7 +316,7 @@ export const courseOfferings = {
id: 8,
key: 'unversioned',
version_year: 'unversioned',
content_root_id: 17,
content_root_id: 11,
name: 'Poem Art',
path: '/s/poem-art',
type: 'Script',
Expand All @@ -337,12 +341,13 @@ export const courseOfferings = {
display_name: 'Artist',
category: 'hoc',
is_featured: false,
participant_audience: 'student',
course_versions: {
9: {
id: 9,
key: 'unversioned',
version_year: 'unversioned',
content_root_id: 18,
content_root_id: 12,
name: 'Artist',
path: '/s/artist',
type: 'Script',
Expand All @@ -361,5 +366,97 @@ export const courseOfferings = {
}
}
}
},
8: {
id: 8,
display_name: 'Self Paced PL CSP',
category: 'self_paced_pl',
is_featured: false,
participant_audience: 'teacher',
course_versions: {
10: {
id: 10,
key: '2021',
version_year: '2021',
content_root_id: 53,
name: 'Self Paced PL CSP 2021',
path: '/courses/self-paced-pl-csp-2021',
type: 'UnitGroup',
is_stable: true,
is_recommended: true,
locales: [],
units: {
13: {
id: 13,
name: 'Unit 1',
path: '/s/self-paced-pl-csp1-2021',
lesson_extras_available: false,
text_to_speech_enabled: false,
position: 1
},
14: {
id: 14,
name: 'Unit 2',
path: '/s/self-paced-pl-csp2-2021',
lesson_extras_available: false,
text_to_speech_enabled: false,
position: 2
}
}
}
}
},
9: {
id: 9,
display_name: 'Virtual PL CSP',
category: 'virtual_pl',
is_featured: false,
participant_audience: 'teacher',
course_versions: {
11: {
id: 11,
key: '2020',
version_year: '2020',
content_root_id: 15,
name: 'Virtual PL CSP 2020',
path: '/s/vpl-csp-2020',
type: 'Script',
is_stable: true,
is_recommended: true,
locales: [],
units: {
15: {
id: 15,
name: 'Virtual PL CSP 2020',
path: '/s/vpl-csp-2020',
lesson_extras_available: false,
text_to_speech_enabled: false,
position: null
}
}
},
12: {
id: 12,
key: '2021',
version_year: '2021',
content_root_id: 16,
name: 'Virtual PL CSP 2021',
path: '/s/vpl-csp-2021',
type: 'Script',
is_stable: true,
is_recommended: true,
locales: [],
units: {
16: {
id: 16,
name: 'Virtual PL CSP 2021',
path: '/s/vpl-csp-2021',
lesson_extras_available: false,
text_to_speech_enabled: false,
position: null
}
}
}
}
}
};

0 comments on commit 7d05e6d

Please sign in to comment.