def test_aborts_if_issue_is_missing(self, with_issues, parsed_args_issues_dir, api_mock, tmp_path):
    'Test that the callback exits with a plug.PlugError if any of the\n        expected issues is not found.\n        '
    repo_without_issue = plug.generate_repo_name(STUDENT_TEAM_NAMES[(- 1)], ASSIGNMENT_NAMES[0])
    missing_file = (tmp_path / '{}.md'.format(repo_without_issue))
    missing_file.unlink()
    with pytest.raises(plug.PlugError) as exc_info:
        feedback.callback(args=parsed_args_issues_dir, api=api_mock)
    assert (repo_without_issue in str(exc_info.value))
    assert (not api_mock.create_issue.called)
Test that the callback exits with a plug.PlugError if any of the
expected issues is not found.
def test_aborts_if_issue_is_missing(self, with_issues, parsed_args_issues_dir, api_mock, tmp_path):
    'Test that the callback exits with a plug.PlugError if any of the\n        expected issues is not found.\n        '
    repo_without_issue = plug.generate_repo_name(STUDENT_TEAM_NAMES[(- 1)], ASSIGNMENT_NAMES[0])
    missing_file = (tmp_path / '{}.md'.format(repo_without_issue))
    missing_file.unlink()
    with pytest.raises(plug.PlugError) as exc_info:
        feedback.callback(args=parsed_args_issues_dir, api=api_mock)
    assert (repo_without_issue in str(exc_info.value))
    assert (not api_mock.create_issue.called)