1
0
forked from erp-dev/erp

feat: new api for plate order (get_plate_order_by_state_status)

This commit is contained in:
2025-12-25 17:18:44 +08:00
parent 2c5174a1ec
commit ff1ea2482d
21 changed files with 936 additions and 58 deletions

View File

@@ -5,6 +5,7 @@ from django.test import TestCase
from rest_framework.test import APIClient
from rest_framework import status
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.models import ContentType
from stateflow import models
User = get_user_model()
@@ -32,9 +33,12 @@ class StepBackAPITestCase(TestCase):
models.ProcessNode.objects.create(process=self.process, state=self.state3, order=2)
# 创建业务对象
process_ct = ContentType.objects.get_for_model(models.Process)
self.business_object = models.BusinessObject.objects.create(
name='测试对象',
process=self.process
process=self.process,
content_type=process_ct,
object_id=self.process.id,
)
def test_step_back_api_success(self):