mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
chore: reenable test spec that tests data loader for races
This commit is contained in:
parent
d4109fda6f
commit
a0c0b1d01d
2 changed files with 6 additions and 8 deletions
|
|
@ -85,9 +85,7 @@ class SurveyResponsesDataLoader
|
|||
student = Student.find_or_create_by(response_id: row.response_id, lasid: row.lasid)
|
||||
student.races.delete_all
|
||||
tmp_races = row.races.map do |race| races[race] end
|
||||
tmp_races.each do |race|
|
||||
student.races << race
|
||||
end
|
||||
student.races += tmp_races
|
||||
|
||||
row.survey_items.map do |survey_item|
|
||||
likert_score = row.likert_score(survey_item_id: survey_item.survey_item_id) || next
|
||||
|
|
|
|||
|
|
@ -354,11 +354,11 @@ def assigns_ell_to_responses
|
|||
end
|
||||
|
||||
def assigns_races_to_students
|
||||
results = { #"student_survey_response_1" => [american_indian],
|
||||
# "student_survey_response_3" => [asian, black, latinx, multiracial],
|
||||
# "student_survey_response_4" => [unknown_race],
|
||||
# "student_survey_response_5" => [american_indian, asian, black, latinx, white, middle_eastern, multiracial],
|
||||
# "student_survey_response_6" => [american_indian, asian, black, latinx, white, middle_eastern, multiracial],
|
||||
results = { "student_survey_response_1" => [american_indian],
|
||||
"student_survey_response_3" => [asian, black, latinx, multiracial],
|
||||
"student_survey_response_4" => [unknown_race],
|
||||
"student_survey_response_5" => [american_indian, asian, black, latinx, white, middle_eastern, multiracial],
|
||||
"student_survey_response_6" => [american_indian, asian, black, latinx, white, middle_eastern, multiracial],
|
||||
"student_survey_response_7" => [white] }
|
||||
|
||||
results.each do |key, value|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue