@pytest.fixture
def with_issues(tmp_path):
    'Create issue files in a temporary directory and return a list of (team,\n    issue) tuples.\n    '
    repo_names = plug.generate_repo_names(STUDENT_TEAM_NAMES, ASSIGNMENT_NAMES)
    existing_issues = []
    for repo_name in repo_names:
        issue_file = (tmp_path / '{}.md'.format(repo_name))
        issue = random.choice(ISSUES)
        _write_issue(issue, issue_file)
        existing_issues.append((repo_name, issue))
    return existing_issues
Create issue files in a temporary directory and return a list of (team,
issue) tuples.
@pytest.fixture
def with_issues(tmp_path):
    'Create issue files in a temporary directory and return a list of (team,\n    issue) tuples.\n    '
    repo_names = plug.generate_repo_names(STUDENT_TEAM_NAMES, ASSIGNMENT_NAMES)
    existing_issues = []
    for repo_name in repo_names:
        issue_file = (tmp_path / '{}.md'.format(repo_name))
        issue = random.choice(ISSUES)
        _write_issue(issue, issue_file)
        existing_issues.append((repo_name, issue))
    return existing_issues