Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
|
w0tintarnation's comments
login
w0tintarnation
on March 24, 2021
|
parent
|
context
[–]
| on:
My Python testing style guide (2017)
Do you have an opinion on grouping pytest tests in classes?
class Test_my_function: def with_default_arguments(self): def with_some_other_arguments(self):
If you can make your eye stop twitching after seeing snake cased class names, this is at least another option of grouping tests for a single function.
poooogles
on March 24, 2021
|
parent
[–]
They're already grouped by module which normally provides enough granularity (in my experience, I've only scaled this up to 50k LOC apps though so YMMV).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: