-
Notifications
You must be signed in to change notification settings - Fork 56
Implement Assessment.QuestionType entities #35
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
Conversation
Pull Request Test Coverage Report for Build 267
💛 - Coveralls |
015774a to
194d956
Compare
194d956 to
1ea3562
Compare
3dcd91d to
7c27cfc
Compare
| embedded_schema do | ||
| field(:content, :string) | ||
| field(:solution_template, :string) | ||
| field(:solution_header, :string) |
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.
This should be optional field, I think it's needed only for path
lib/cadet/assessments.ex
Outdated
| |> ProgrammingQuestion.changeset(%{raw_programmingquestion: json_attr}) | ||
| end | ||
|
|
||
| def create_programmingquestion(attr = %{}) do |
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.
create_programming_question is a bit easier to read.
lib/cadet/assessments.ex
Outdated
| |> MCQQuestion.changeset(%{raw_mcqquestion: json_attr}) | ||
| end | ||
|
|
||
| def create_mcqquestion(attr = %{}) do |
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.
create_multiple_choice_question
|
Done. |
* Implement question types * Add tests * Add library to ProgrammingQuestion * Remove debug output and mix format * Fix according to code review * Bypass coveralls * Comment out assessments context to allow merging
* Implement question types * Add tests * Add library to ProgrammingQuestion * Remove debug output and mix format * Fix according to code review * Bypass coveralls * Comment out assessments context to allow merging
I have not yet written tests for lib/cadet/assessments.ex because @sreycodes is still writing the code for the assessment context.