-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate undergraduate test applications #9876
Generate undergraduate test applications #9876
Conversation
Now that we have on our service postgraduate and undergraduate courses I am generating test application for the teacher degree apprenticeship program
.in_cycle(recruitment_cycle_year) | ||
|
||
if courses.count.zero? | ||
provider = Provider.all.sample(10).sample || FactoryBot.create(:provider) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't care what provider is created from those applications and at this point I suspect each developer has your own provider favorite that test locally or QA. Let me know if you have strong opinions about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tend to use provider code 1TZ becuase they have primary and secondary courses by default. Only saying as you asked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@inulty-dfe I pushed one commit using the 1TZ as first try and if there isn't one, they will go to the next or statement and select at random.
Context
Now that we have on our service postgraduate and undergraduate courses I am generating test application for the teacher degree apprenticeship program
Guidance to review