Bolt
Bolt copied to clipboard
A test runner that prettifies `assert` statements
Create a test runner, much like pytest, that transforms the AST before actually running tests.
For example, the following test:
assert (result == 1)
Could be transformed to something like this:
if result != 1.
fail f"{result} is not equal to {1}"
Which then displays the nice error message:
test failed: 42 is not equal to 1