Hacker News new | ask | show | jobs
by westurner 632 days ago
Yeah, there `sed` and `git diff` with one or more filenames in a variable might do.

Because pytest requires a preprocessing step, renaming fixtures is tough, and also for jupyter notebooks %%ipytest is necessary to call functions that start with test_ and upgrade assert keywords to expressions; e.g `assert a == b, error_expr` is preprocessed into `assertEqual(a,b, error_expr)` with an AssertionError message even for comparisons of large lists and strings.