Be aware that session.fspath returns the path where the tests were run from. It's probably better to use request.fspath