S
S
Sergey Nizhny Novgorod2016-07-29 16:14:48
Django
Sergey Nizhny Novgorod, 2016-07-29 16:14:48

What is the correct algorithm for writing unit/integrational tests for Django?

Hello.
Can you suggest an algorithm (sequence) for writing unit/integrational tests for Django?
I think something like this:
1) Check response.status_code for all pages. - there is a page or not.
2) Checking the saving of models - does it work or not.
3) Checking the work of forms - whether it works or not.
4) Checking the work of libraries for working with pictures.
....
but then I somehow find it difficult.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
un1t, 2016-07-29
@Terras

The sequence of writing tests is as follows. You write the test, then you write the code. Repeat until the project is ready. Then there will be no such questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question