python-feedgen icon indicating copy to clipboard operation
python-feedgen copied to clipboard

Use Unittest Asserts

Open lkiesow opened this issue 5 years ago • 1 comments

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.

lkiesow avatar Jan 28 '20 22:01 lkiesow

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.

hugovk avatar Jun 11 '22 15:06 hugovk