boothby/dissert
View on GitHub ↗ ★ 4 Python
A file-level assertion disabler for Python
5 mentions on Hacker News by 1 person: 1 story, 4 comments · first 2020-06-19 · latest 2023-06-17
20082026
-
As a bit of a joke I wrote a library for this once https://github.com/boothby/dissert The big problem is that some people use assert wrong. There's a distinct time and place for asserts, and that's for testing purely internal logic. If…
comment by boothby · 2023-06-17 · in The best Python feature you cannot use -
…water. There's a hack for that (no apologies for the self promotion; the project is a just funnin') https://github.com/boothby/dissert
comment by boothby · 2021-01-21 · in Python 3's F-Strings: An Improved String Formatting Syntax -
A plug for an old-is-new-again feature I hacked together in an evening... https://github.com/boothby/dissert I like assertions. They're a really good alternative to unit tests because they can be used in a real environment without the need…
comment by boothby · 2020-07-09 · in Unit Testing Is Overrated -
…this week: single-file python package that lets you disable assertions in files or modules. https://github.com/boothby/dissert
comment by boothby · 2020-06-21 · in Ask HN: What did you make during lockdown?