lkiesow / python-feedgen

Python module to generate ATOM feeds, RSS feeds and Podcasts.
https://feedgen.kiesow.be/
BSD 2-Clause "Simplified" License
713 stars 123 forks source link

Use Unittest Asserts #93

Closed lkiesow closed 7 months ago

lkiesow commented 4 years ago

This patch switches to the assert statements provided by Python's unit test framework to assure the statements are always executed and produce proper error messages in case of test failures.

hugovk commented 2 years ago

Alternatively, the popular pytest could be used for running tests, and it uses assert statements. (It does some smart detection of them to decide what error message to show.)

I could put together a PR if you like.