Posts tagged testing

Setting Up Fake Django Application for Testing with Pytest

Sometimes we need to test our code in a context of a Django application. Usually this code implements generic components, e.g. custom Django fields. We could always test our components in the context of our Django application, but this breaks the requirement for test isolation. To overcome this problem we could create a Django application which is intended for testing the specific components.

Read more ...


Setup Django for Testing with pytest

Test Driven Development is a popular software development practice which helps in creating better software. The practice that I prefer is a little bit relaxed practice that I call Test Assisted Development as sometimes tests are not written before the production code (but let’s leave this discussion for another place and time). Django projects also need to be thoroughly tested. Let’s configure our Django project for testing with pytest before even creating the first Django application.

Read more ...


Django Testing Cookbook

In this cookbook we are focusing on testing Django with pytest.

Read more ...