How to use temporary directories and files in tests
https://docs.pytest.org/en/7.3.x/how-to/tmp_path.html#pytestpytestでは[Python tempfile]を使う必要がない!The [tmp_path] fixture>You can use the tmp_path fixture which will provide a temporary directory unique to the test invocation, created in the base temporary directory.