def test_ignores_missing_issue_if_allow_missing(self, with_issues, parsed_args_issues_dir, api_mock, tmp_path):
    'Test that missing issues are ignored if --allow-mising is set.'
    repo_without_issue = plug.generate_repo_name(STUDENT_TEAM_NAMES[(- 1)], ASSIGNMENT_NAMES[0])
    (tmp_path / '{}.md'.format(repo_without_issue)).unlink()
    expected_calls = [mock.call(issue.title, issue.body, mock.ANY) for (repo_name, issue) in with_issues if (repo_name != repo_without_issue)]
    args_dict = vars(parsed_args_issues_dir)
    args_dict['allow_missing'] = True
    args = argparse.Namespace(**args_dict)
    feedback.callback(args=args, api=api_mock)
    api_mock.create_issue.assert_has_calls(expected_calls, any_order=True)
Test that missing issues are ignored if --allow-mising is set.
def test_ignores_missing_issue_if_allow_missing(self, with_issues, parsed_args_issues_dir, api_mock, tmp_path):
    
    repo_without_issue = plug.generate_repo_name(STUDENT_TEAM_NAMES[(- 1)], ASSIGNMENT_NAMES[0])
    (tmp_path / '{}.md'.format(repo_without_issue)).unlink()
    expected_calls = [mock.call(issue.title, issue.body, mock.ANY) for (repo_name, issue) in with_issues if (repo_name != repo_without_issue)]
    args_dict = vars(parsed_args_issues_dir)
    args_dict['allow_missing'] = True
    args = argparse.Namespace(**args_dict)
    feedback.callback(args=args, api=api_mock)
    api_mock.create_issue.assert_has_calls(expected_calls, any_order=True)