Most of the pytest unit test code I'm looking at ends up turning into giant write-once files (revisit only if tests fail) that are impossible to navigate -- do folks know of open source projects in the Python world that do a really exemplary job organizing their tests (not just the files, but the contents of said files, and the names/object hierarchy of the tests)?
@FPinaMartins Thank you -- I certainly like the relatively small size per file. Right now I'm fighting with files like https://github.com/freedomofpress/securedrop-client/blob/main/tests/gui/test_widgets.py (admittedly the tested widgets.py reaaaally needs to be refactored).
Thanks, we tried our best to avoid having very large files, since there were 3 of us working together at one time.
That `test_widgets.py` is certainly huge! If you are going to refactor that, *maybe* you could consider segregating parts of `widgets.py` too. It might make the job of refactoring the tests easier too.
I leave answering the question of whether the efforts compensate the benefits to you. _-)
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!