Other articles


  1. Class-based decorators with Python

    A Python decorator is, basically, a function that take a function as argument and return a function. This is a powerful feature. But it has some drawbacks:

    • decorators are quite tricky to develop. Of course they are for Python newbies. But, as an experienced Python developer, I must admit I …
    read more

    There are comments.

  2. A Django testing challenge

    Here at Novapost, we have quite large Django projects. Big projects mean big maintenance. Hopefully, those projects are covered by tests. Thousands of tests. We are quite proud of this fact. Tests save our lives. But we also have some worries and need to improve... Here is our testing challenge …

    read more

    There are comments.

  3. Unit test your Django views

    How to test views of a Django application?

    Django's builtin test client is not suitable for unit testing! It performs system tests: it handles your views as a black box in a project's environment.

    This article provides a recipe for developers to replace Django's builtin test client by smaller, fine-grained …

    read more

    There are comments.

Page 1 / 2 »