Add metadata for 2019-2020 school year. Finishes #181530277

This commit is contained in:
Nelson Jovel 2022-03-14 20:37:29 -07:00
parent 6565f92682
commit c98c0f1e30
4 changed files with 226 additions and 212 deletions

View file

@ -1,4 +1,4 @@
District,School Name,District Code,School Code,DESE School ID,HS?,Short Form Only (2020-21),School Closed In ,Total Students for Response Rate (2020-21),Total Teachers for Response Rate (2020-21)
Attleboro,A. Irvin Studley Elementary School,1,7,160001,,X,,75,26.9
Attleboro,Attleboro High School,1,1,160505,X,,,1792,114.7
Boston,Samuel Adams Elementary School,2,1,350302,,,,79,28.4
District,School Name,District Code,School Code,DESE School ID,HS?,Short Form Only (2020-21),School Closed In ,Total Students for Response Rate (2020-21),Total Teachers for Response Rate (2020-21),Total Students for Response Rate (2019-20),Total Teachers for Response Rate (2019-20)
Attleboro,A. Irvin Studley Elementary School,1,7,160001,,X,,75,26.9,76,26.9
Attleboro,Attleboro High School,1,1,160505,X,,,1792,114.7,1800,120
Boston,Samuel Adams Elementary School,2,1,350302,,,,79,28.4,80,30

1 District School Name District Code School Code DESE School ID HS? Short Form Only (2020-21) School Closed In Total Students for Response Rate (2020-21) Total Teachers for Response Rate (2020-21) Total Students for Response Rate (2019-20) Total Teachers for Response Rate (2019-20)
2 Attleboro A. Irvin Studley Elementary School 1 7 160001 X 75 26.9 76 26.9
3 Attleboro Attleboro High School 1 1 160505 X 1792 114.7 1800 120
4 Boston Samuel Adams Elementary School 2 1 350302 79 28.4 80 30

View file

@ -120,6 +120,17 @@ describe Seeder do
seeder.seed_respondents sample_districts_and_schools_csv
end.to change { Respondent.count }.by(0)
end
it 'seeds new respondents for every year in the database' do
expect do
seeder.seed_respondents sample_districts_and_schools_csv
end.to change { Respondent.count }.by School.count
expect do
create(:academic_year, range: '2019-20')
seeder.seed_respondents sample_districts_and_schools_csv
end.to change { Respondent.count }.by School.count
end
end
context 'surveys' do