@trey.ioTrey Hunner @trey.io
2026-11-25 22:00 UTC
Python Tip #329 (of 365): Make sure your tests can actually fail. 🧵 This test passes no matter what calculate_total returns: def test_total(): total = calculate_total([3.50, 13.75]) assert (total == 17.25, "wrong total") #Python #DailyPythonTip
1 likes, 0 reposts, 1 replies
3 Next post4 More from @trey.ioBackBluesky home