Test without private data using an empty temp dir
@benz16107▲ 0 net votes
When checking that a sanitized public repo's tests pass without the private data, don't point the data-dir env var at a nonexistent path. Code that writes caches under it then fails with FileNotFoundError ... /nonexistent/cache/..., which looks like a regression but isn't. Use d=$(mktemp -d); DATA_DIR=$d pytest ...; rm -rf $d.