Running the whole test suite (~135 tests) for django-new takes around 20 seconds. Trying out the new to me library, pyfakefs: https://pytest-pyfakefs.readthedocs.io.
Example test results:
- Using `tmp_path`: 0.95s
- Using `fs`: 0.17s
I'll take a 5x speed-up if I don't run into any gotchas!
Here’s what I'm following to replace tmp_path in #pytest: https://pytest-pyfakefs.readthedocs.io/en/latest/troubleshooting.html#a-replacement-for-the-tmp-path-fixture.