I'm noticing that GPT-5 writes pytests tests as global level functions, while Sonnet writes pytests wrapped in classes.
Any opinions on which is better?
(I always do the former personally, in pytest)

Follow

@pamelafox I pretty only write pytest tests in classes when I might subclass them for some reason (or when directly migrating something based on unittest), but using them as a namespace makes a certain amount of sense.

Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.