Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tomprince/0ebc183042114bd5fe980a1ca6e240a9 to your computer and use it in GitHub Desktop.
Save tomprince/0ebc183042114bd5fe980a1ca6e240a9 to your computer and use it in GitHub Desktop.
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