

def test_skip_non_directory(self):
    os.mkdir(self.build_dir)
    replace_dir = os.path.join(self.build_dir, 'directory1')
    open(replace_dir, 'w').close()
    self.build_scaffold('test-template-2', overwrite_target_root=True)
    assert self.exists('directory1', type='file')
    assert replace_dir.logged('Skipping existing non-directory', level='error')

dataset/ETHPy150Open fgimian/flaskage/tests/test_scaffold.py TestScaffold.test_skip_non_directory/VarMisuse@69/100 `self`->`replace_dir`