File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- blank_issues_enabled : true
1+ blank_issues_enabled : false
22contact_links :
33 - name : 💬 讨论区 / Discussions
44 url : https://github.com/ZhuLinsen/daily_stock_analysis/discussions
Original file line number Diff line number Diff line change 77ISSUE_TEMPLATE_DIR = ROOT / ".github" / "ISSUE_TEMPLATE"
88BUG_REPORT_FORM = ISSUE_TEMPLATE_DIR / "bug_report.yml"
99BUG_REPORT_MARKDOWN = ISSUE_TEMPLATE_DIR / "bug_report.md"
10+ ISSUE_TEMPLATE_CONFIG = ISSUE_TEMPLATE_DIR / "config.yml"
1011
1112
1213def _body_item (form , item_id ):
@@ -19,9 +20,12 @@ def _body_item(form, item_id):
1920def test_bug_report_uses_single_required_issue_form ():
2021 assert BUG_REPORT_FORM .exists ()
2122 assert not BUG_REPORT_MARKDOWN .exists ()
23+ assert ISSUE_TEMPLATE_CONFIG .exists ()
2224
2325 form = yaml .safe_load (BUG_REPORT_FORM .read_text (encoding = "utf-8" ))
26+ config = yaml .safe_load (ISSUE_TEMPLATE_CONFIG .read_text (encoding = "utf-8" ))
2427
28+ assert config ["blank_issues_enabled" ] is False
2529 assert form ["title" ] == "[Bug] "
2630 assert "bug" in form ["labels" ]
2731 assert isinstance (form ["body" ], list )
You can’t perform that action at this time.
0 commit comments