Answer the question
In order to leave comments, you need to log in
Is it normal if I check both the status of the response, the fact of writing to the database and the fact of saving the file on disk in one test method?
Actually, I do not want to repeat the lines of the post-request from method to method.
Answer the question
In order to leave comments, you need to log in
You can do that, but you won't see what fell after the first fall (if more than one action fell). And the formation lines can be moved to a separate method without test_ at the beginning.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question