Exploring Test-Driven Development
TDD is a type of development process where we first write the tests that will fail, followed by writing our application code, which will make all the failing tests pass. This helps us to write smaller code blocks and also have a set contract on what each function/method should provide as output. TDD is a thought process, and new developers might need some handholding to shift to this mind space.
We shall not go into the details of TDD; there is a course that explores this in detail: https://www.packtpub.com/product/hands-on-test-driven-development-with-python-video/9781789138313.
With this, we wrap up all the topics related to writing tests in Django/DRF.