@pytest.fixture
def root():
    'Root function for tests.'
    dirname = tempfile.mkdtemp()
    (yield os.path.join(dirname, 'output1'))
    print('Directory structure was:')
    tree(dirname)
    shutil.rmtree(dirname)
Root function for tests.
@pytest.fixture
def root():
    
    dirname = tempfile.mkdtemp()
    (yield os.path.join(dirname, 'output1'))
    print('Directory structure was:')
    tree(dirname)
    shutil.rmtree(dirname)