DEV Community

Discussion on: Make tests a part of your app

hanpari profile image
Pavel Morava

The side effects testing (examples with stdin, stdout) is sweet but cannot probably verify whether a user is logged or not. Like I said before, I am not sure if Django is the best candidate for being tested this way. Django testing utilities are better equipped for these tests. The communication with Django views is stateful. This is why I was uncertain how would you test it.

Thread Thread
sobolevn profile image
Nikita Sobolev Author

Take a look at stateful testing in hypothesis and schemathesis:

It might cover some basics on how it can be done!