@pytest.fixture(scope='function')
def remove_additional_dirs(request):
    def fin_remove_additional_dirs():
        if os.path.isdir('fake-project'):
            utils.rmtree('fake-project')
        if os.path.isdir('fake-project-extra'):
            utils.rmtree('fake-project-extra')
        if os.path.isdir('fake-project-templated'):
            utils.rmtree('fake-project-templated')
    request.addfinalizer(fin_remove_additional_dirs)
Remove special directories which are created during the tests.
dataset/ETHPy150Open audreyr/cookiecutter/tests/test_cookiecutter_local_no_input.py/remove_additional_dirs