forked from erp-dev/erp
fix: current_state has been changed to a computed property
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user