2 ms·
I like the concept, but using the profiler to grab locally declared tests is a bit more magic than I'm comfortable with in my tests. Something like this might
by ben509 6y ago
I like the concept, but using the profiler to grab locally declared tests is a bit more magic than I'm comfortable with in my tests.
Something like this might be a good compromise:
def describe_my_function(register):
@register
def with_this_thing():
...
I think most Python devs understand that "register" can have a side-effect.