Benjamin Balder Bach on Nostr: What's the advantage of having tests.py inside a #django app? project/app1/tests.py ...
What's the advantage of having tests.py inside a #django app?
project/app1/tests.py
project/app2/tests.py
vs.
project/app1/
project/app2/
project/tests/<lots of stuff>
I find that app-specific test modules often have ill-defined scopes.... so it's easier to bootstrap unit tests, integration tests, factories, helpers, fixtures etc. inside a separate package.
project/app1/tests.py
project/app2/tests.py
vs.
project/app1/
project/app2/
project/tests/<lots of stuff>
I find that app-specific test modules often have ill-defined scopes.... so it's easier to bootstrap unit tests, integration tests, factories, helpers, fixtures etc. inside a separate package.