[TIP] No boilerplate testing framework

anatoly techtonik techtonik at gmail.com
Sat Aug 31 00:39:43 PDT 2019

I've got a simple Python module named **pypack.py**, and I want to
test it with as little boilerplate as possible. I want to write my
tests in **pypack_test.py**  (similar to Go naming convention). And I
want these tests to be written like this.

    assert_equals(get_description("Short"), "Short")
    assert_equals(get_description("Short\n\nLong"), "Short")


1. `get_description` is automatically imported from `pypack`
2. `assert_equals` is automatically inserted by test harness

Are there any frameworks that could be executed from terminal as a
single command that allow just that? If not, how hard it is to

On separate a wishlist is (1) detection of conflicting symbols between
test harness and tested module, (2) automated timings by detecting
test execution boundaries.
anatoly t.

More information about the testing-in-python mailing list