|
|
|
|
|
by simonw
1593 days ago
|
|
This is brilliant. pytest is by far the most productive testing framework I've ever tried, for any language. It's so good that it switched me from treating tests as a necessary chore to actively enjoying writing them. Using ctypes to exercise a C module like this is brilliant - especially the mechanisms used here to work around segmentation faults. Reminds me of SQLite, which is written in C but uses TCL for most of its test suite. |
|
For example, you're calling code which internally does Too().bar() and you want to advance your time mock after it's called.