

@mock.patch('flaskage.scaffold.prompt_yes_no', return_value=False)
def test_policy_prompt_no_directory(self, mock_prompt_yes_no):
    os.mkdir(self.build_dir)
    test_directory = os.path.join(self.build_dir, 'directory1')
    os.mkdir(test_directory)
    os.chmod(test_directory, ((stat.S_IRUSR | stat.S_IWUSR) | stat.S_IXUSR))
    self.build_scaffold('test-template-2', overwrite_target_root=True, existing_policy=Scaffold.EXISTING_PROMPT)
    assert self.exists('directory1', type='dir')
    assert (get_permissions(mock_prompt_yes_no) == 448)
    assert self.logged('Skipping existing directory')

dataset/ETHPy150Open fgimian/flaskage/tests/test_scaffold.py TestScaffold.test_policy_prompt_no_directory/VarMisuse@111/179 `test_directory`->`mock_prompt_yes_no`