Using tests inputs in assertions (or rather not)

Posted on 10 November 2021 in articles • Tagged with programming, python, testing, unit tests

beautiful [but deadly] square knot / by woodleywonderworks / https://www.flickr.com/photos/wwworks/5623339500 / License: Attribution 2.0 Generic (CC BY 2.0)

It might be very convenient to use the same fixtures in test setup and assertions. This practice though is not as good as it looks like at first glance.


Continue reading