fix: datetime import
diff --git a/erpnext/support/doctype/issue/issue.py b/erpnext/support/doctype/issue/issue.py
index 05ae573..0f6dd72 100644
--- a/erpnext/support/doctype/issue/issue.py
+++ b/erpnext/support/doctype/issue/issue.py
@@ -371,4 +371,5 @@
"""
Converts datetime.time(10, 36, 55, 961454) to datetime.timedelta(seconds=38215)
"""
+ import datetime
return datetime.timedelta(hours=time.hour, minutes=time.minute, seconds=time.second)
\ No newline at end of file
diff --git a/erpnext/support/doctype/issue_priority/test_issue_priority.py b/erpnext/support/doctype/issue_priority/test_issue_priority.py
index 0d65122..a7b55f8 100644
--- a/erpnext/support/doctype/issue_priority/test_issue_priority.py
+++ b/erpnext/support/doctype/issue_priority/test_issue_priority.py
@@ -7,7 +7,13 @@
import unittest
class TestIssuePriority(unittest.TestCase):
- pass
+
+ def test_priorities(self):
+ make_priorities()
+ priorities = frappe.get_list("Issue Priority")
+
+ for priority in priorities:
+ self.assertIn(priority.name, ["Low", "Medium", "High"])
def make_priorities():
insert_priority("Low")