People consistently plop a folder called 'tests' right next to the package they'd like to test... which is code that describes the expected behavior of the code next door.
I believe it may be the single biggest mistake that people are bringing forward into py3 when they migrate. Subpackaging and implicit name spacing are alive and well in py3 and people still habitually go towards what the the pytest docs says 'because it is pytest'.
Shortly into Okken's modern book on the pytest framework, he clears up this sorry note that exists in the 'official docs', clearly formulating why using subpackaging has organizational advantages.
4
u/[deleted] Nov 03 '19
Can you please elaborate on that bit about tests in project root? Not sure I understand what you mean by that. Thx.