tests.py cannot be split to package always
|Reported by:||Ciantic||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
My tests.py grew too big, and followed advice to split it to package tests, but not all features are supported that way, which is a shame, there really should be support.
Especially the models defined in tests.py cannot be moved to individual tests/sometest.py, even though one imports all from sometest.py in tests/__init__.py it keeps throwing error that the model is not created to database.
See also my django-users discussion, for more thorough example.
Change History (4)
comment:1 Changed 6 years ago by russellm
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted