check_not_in_place
This commit is contained in:
parent
c6e2070187
commit
8d8f0d50a3
|
|
@ -9,7 +9,7 @@ from apps.develop.serializers import CleanDataSerializer, GenerateVoiceSerialize
|
|||
TestTaskSerializer, TestAlgoSerializer
|
||||
from apps.develop.tasks import backup_database, backup_media, reload_web_git, reload_server_git, reload_server_only
|
||||
from rest_framework.exceptions import APIException
|
||||
from apps.ecm.service import create_remind, notify_event, snap_and_analyse
|
||||
from apps.ecm.service import check_not_in_place, create_remind, notify_event, snap_and_analyse
|
||||
from apps.opm.models import Opl
|
||||
from apps.system.tasks import show
|
||||
from apps.third.clients import dhClient
|
||||
|
|
@ -210,6 +210,11 @@ class TestViewSet(CustomGenericViewSet):
|
|||
snap_and_analyse(vc, ['fire1'], Opl.objects.get(id='1568880208688320512'))
|
||||
return Response()
|
||||
|
||||
@action(methods=['post'], detail=False, serializer_class=Serializer)
|
||||
def test_not_in_place(self, request, pk=None):
|
||||
check_not_in_place(Opl.objects.get(id='1568880208688320512'))
|
||||
return Response()
|
||||
|
||||
@action(methods=['post'], detail=False, serializer_class=Serializer)
|
||||
def send_wx_msg(self, request, pk=None):
|
||||
"""微信模板消息发送测试
|
||||
|
|
|
|||
Loading…
Reference in New Issue