Scrape enrollment and staffing information. Seed enrollment and staffing information. Update DatabaseCleaner so it cleans up leftover information in the database. Remove old admin csvs from codebase.

This commit is contained in:
rebuilt 2023-03-05 16:15:35 -08:00
parent 20d4f966e7
commit 06f9d2f0e9
27 changed files with 48177 additions and 4843 deletions

View file

@ -43,18 +43,18 @@ describe 'District Admin', js: true do
# let(:username) { 'winchester' }
# let(:password) { 'winchester!' }
let(:respondents) do
respondent = create(:respondent, school:, academic_year: ay_2021_22)
respondent = Respondent.find_or_initialize_by(school:, academic_year: ay_2021_22)
respondent.total_students = 8
respondent.total_teachers = 8
respondent.save
respondent = create(:respondent, school:, academic_year: ay_2019_20)
respondent = Respondent.find_or_initialize_by(school:, academic_year: ay_2019_20)
respondent.total_students = 8
respondent.total_teachers = 8
respondent.save
end
before :each do
before do
Rails.application.load_seed
respondents
@ -99,7 +99,7 @@ describe 'District Admin', js: true do
SurveyItemResponse.import survey_item_responses
end
after :each do
after do
DatabaseCleaner.clean
end