[Django]-How to split Django app tests across several files

9👍

Here’s a really good guide on testing django apps:
A Guide to Testing in Django

And the example app on github splits the tests for forms, views and models into separate files, so it is probably a good example for you.

Note how each test module gets imported in __init__.py:

from polls.tests.forms import *
from polls.tests.models import *
from polls.tests.views import *
👤arie

Leave a comment