@pytest.fixture
def remove_fake_project_dir(request):
 def fin_remove_fake_project_dir():
  if os.path.isdir('fake-project'):
   utils.rmtree('fake-project')
 request.addfinalizer(fin_remove_fake_project_dir)

@ pytest . fixture def remove_fake_project_dir ( request ) : def fin_remove_fake_project_dir ( ) : if os . path . isdir ( 'fake-project' ) : utils . rmtree ( 'fake-project' ) request . addfinalizer ( fin_remove_fake_project_dir )
remove the fake project directory created during the tests .