First insight of the day
The trials of testing
PyCharm is a great IDE for Python development. Its support for Django projects is really good (if only it applied environment variables from the Django project setup to run configurations …).
As with everything Python, the structure of Django projects is not set
in stone and everyone has their own preferred style. Mine is to have
applications in (below) a common subdirectory. Unfortunately this
means that Django’s built-in test framework (or possibly just
unittest
) does not find the tests on its own and I had to invent
some complicated workarounds to automate them to my satisfaction.
This morning I discovered that all it needs to work is for me to tell
it that that common subdirectory is a module by giving it an
__init__.py
.