Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2020 (3)
20082026
  1. 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
  2. …water. There's a hack for that (no apologies for the self promotion; the project is a just funnin') https://github.com/boothby/dissert
  3. 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
  4. …this week: single-file python package that lets you disable assertions in files or modules. https://github.com/boothby/dissert