Setting QuizQuestion.question_type (or it appears, other attributes such as QuizQuestion.answers) resets QuizQuestion.question_text after the latter has been set.
To Reproduce
Steps to reproduce the behavior:
Get a QuizQuestion object from a course and set its question_text, then its question_type attributes using QuizQuestion.edit:
Describe the bug
Setting
QuizQuestion.question_type
(or it appears, other attributes such asQuizQuestion.answers
) resetsQuizQuestion.question_text
after the latter has been set.To Reproduce
Steps to reproduce the behavior:
Get a
QuizQuestion
object from a course and set itsquestion_text
, then itsquestion_type
attributes usingQuizQuestion.edit
:Expected behavior
Expected output:
Actual output:
I believe
"Question text"
is the default value for that field.Environment information
python --version
) 3.8.12pip show canvasapi
) 3.0.0Additional context
Add any other context about the problem here.