mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
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:
parent
20d4f966e7
commit
06f9d2f0e9
27 changed files with 48177 additions and 4843 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue