DEV Community

Discussion on: Typechecking Django internals and querysets

Collapse
 
1oglop1 profile image
Jan Gazda

Hi, thanks for the article!
I wonder about the project structure, when you have nested the apps inside the server, you have to replicate the whole structure in tests
How would this work if each app had own tests app/tests - would there be any benefits or potential problems?
Thank you!

Collapse
 
sobolevn profile image
Nikita Sobolev

Hi, good question! I think that adding tests in tests/ have more benefits, because I can actually organize tests differently. Sometimes, tests do not have to copy the original structure and most of the time it is really important to test things in between the contexts / apps.

With server/apps/*/tests approach it would be harder. But, this is just a preference, use what is best for you! 👍