I
I
ildar-meyker2021-08-30 18:33:45
Software testing
ildar-meyker, 2021-08-30 18:33:45

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

1 answer(s)
A
Anton Anton, 2021-08-30
@ildar-meyker

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 question

Ask a Question

731 491 924 answers to any question