1
0
forked from erp-dev/erp

fix: current_state has been changed to a computed property

This commit is contained in:
2025-11-19 10:23:17 +08:00
parent 7f822b0064
commit 400c0db6db
14 changed files with 964 additions and 87 deletions

View File

@@ -623,8 +623,8 @@ class BusinessObjectAPITestCase(TestCase):
def test_step_back_when_not_started(self):
"""测试未开始时尝试回退(预期错误)"""
# 验证未开始
self.assertEqual(services.get_overall_status(self.business_object), 'not_started')
# 验证进行中(废除了 not_started初始状态也是 in_progress
self.assertEqual(services.get_overall_status(self.business_object), 'in_progress')
# 尝试回退(应该失败)
response = self.client.post(