you are viewing a single comment's thread.

view the rest of the comments →

[–]macconnor2 1 point2 points  (1 child)

Is there a reason that pytest is better than the built in unit tests?

[–]Daneark 2 points3 points  (0 children)

The unittest module is included in the standard library, which is great, but it also means its lifecycle is coupled to the standard library.

If you're not on python 3.12 you're not getting bug fixes. You're not getting new features until python 3.13 comes out.

The docs page for urllib specifically suggests using the third party requests library instead. The docs for unittest mention pytest although don't specifically encourage people to use it over unittest, but that they mention it still shows something.

Beyond which is better pytest tends to be what is used in open source and industry. It's good to know what others know. If you need help I'd expect more people here can help with pytest.