Instantly share code, notes, and snippets.

Embed
What would you like to do?
import pytest
@pytest.fixture(scope="session", autouse=True)
def cleandir(tmpdir_factory, request):
tmpdir = tmpdir_factory.mktemp('data')
tmpdir.chdir()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment