diff --git a/services/case_service.py b/services/case_service.py index 3dcf4a3b97f01e480f2157a72fd1eea4b4272a76..22eddf36ccb775563c662fd0a20df675c54d48ee 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']):