From aecd86d68c34707c2c5a3fa32ba3cb6912eee9bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AD=A6=E5=B3=B0?= Date: Fri, 1 Jul 2022 17:23:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dtone=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E7=9A=84=E7=94=A8=E4=BE=8B=E7=B1=BB=E5=9E=8B=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/case_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/case_service.py b/services/case_service.py index 3dcf4a3..22eddf3 100644 --- a/services/case_service.py +++ b/services/case_service.py @@ -56,6 +56,8 @@ async def create_case(data, owner): data.update(dict({'custom_fields': data['custom_fields']})) if 'test_type' in data: data.update(dict({'type': data['test_type']})) + if data['run_method'] == Case_Run_Method.AUTO.value and 'test_type' in data['custom_fields']: + data.update({'type': data['custom_fields']['test_type']}) if 'labels' in data: data.update({'labels': data['labels']}) if not await TestSuite.query_obj_one(TestSuite.name == data['suite_name']): -- Gitee