Test store.UpdateQuiz
This commit is contained in:
parent
56038e014a
commit
7a1135de0f
1 changed files with 3 additions and 2 deletions
|
@ -127,13 +127,13 @@ func (t *testSuite) TestUpdateQuiz() {
|
|||
},
|
||||
})
|
||||
|
||||
t.Nil(err, "The quiz to update should be created without issue")
|
||||
t.Nil(err, "The quiz to be updated should be created without issue")
|
||||
|
||||
if !t.Failed() {
|
||||
_, err = store.UpdateQuiz(
|
||||
&client.CreateUpdateQuizRequest{
|
||||
Quiz: &client.Quiz{
|
||||
Question: &client.Question{Text: "Newly created question text."},
|
||||
Question: &client.Question{Text: "Updated question text."},
|
||||
Answers: []*client.Answer{
|
||||
{Text: "Answer 1", Correct: true},
|
||||
{Text: "Answer 2", Correct: false},
|
||||
|
@ -144,6 +144,7 @@ func (t *testSuite) TestUpdateQuiz() {
|
|||
}, quiz.ID)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func createQuizOnDisk(store *FileProboCollectorStore, req *client.CreateUpdateQuizRequest) (*models.Quiz, error) {
|
||||
|
|
Loading…
Reference in a new issue