Skip to content

Commit

Permalink
Added a common used provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-stefano committed Sep 30, 2024
1 parent 2dc189e commit 826a10b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/workers/generate_test_applications.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ def undergraduate_courses_from_cycle(year)
.in_cycle(recruitment_cycle_year)

if courses.count.zero?
provider = Provider.all.sample(10).sample || FactoryBot.create(:provider)
common_used_provider_code = '1TZ'
provider = Provider.find_by(code: common_used_provider_code) ||
Provider.all.sample(10).sample ||
FactoryBot.create(:provider)

FactoryBot.create_list(
:course,
Expand Down

0 comments on commit 826a10b

Please sign in to comment.