Skip to content

Commit 1136d12

Browse files
committed
Edit: classify_severity doctests capable
1 parent 934e6f4 commit 1136d12

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

bug_triage.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def classify_severity(content: str) -> str:
1919
"""
2020
Classifies bug severity based on specific keywords found in the content.
2121
Returns S1 (Critical) through S4 (Minor).
22+
>>> classify_severity("The application had a fatal crash on startup.")
23+
'S1'
24+
>>> classify_severity("The UI is a bit slow today.")
25+
'S3'
2226
"""
2327
content = content.lower()
2428

0 commit comments

Comments
 (0)