claude-proxy / tests /contracts /test_issue_forms.py
dheraingoud's picture
Copilot App
Sync upstream v6.19.35 and preserve custom addons
a9e27c0
Raw History Blame Contribute Delete
492 Bytes
from pathlib import Path
import pytest
@pytest.mark.parametrize(
("filename", "label"),
[
("bug-report.yml", "bug"),
("feature-request.yml", "enhancement"),
],
)
def test_issue_forms_classify_with_labels_not_title_prefixes(
filename: str,
label: str,
) -> None:
form = Path(".github/ISSUE_TEMPLATE", filename).read_text(encoding="utf-8")
assert f" - {label}" in form
assert not any(line.startswith("title:") for line in form.splitlines())