from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Suite = api.create_model_class( "Suite", { "description": False, "id": False, "name": True, "project_id": False, "url": False, "is_master": False, 'is_baseline': False, 'is_completed': False, 'completed_on': False, })
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. CaseField = api.create_model_class( "CaseField", { "configs": False, "description": False, "display_order": False, "id": False, "label": True, "name": True, "system_name": False, "type_id": False, "type": False, "include_all": False, "template_ids": False, "entity_id": False, "location_id": False, "is_multi": False, "is_active": False, "status_id": False, "is_system": False, }) CaseFieldContext = api.create_model_class("CaseFieldContext", { "is_global": True, "project_ids": False, })
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. PlanEntry = api.create_model_class( "PlanEntry", { "case_ids": False, "suite_id": False, "runs": False, "description": False, "name": False, "include_all": False, "config_ids": False, "id": False, "assignedto_id": False } )
Case = api.create_model_class( "Case", { "created_by": False, "created_on": False, 'custom_automation_type': None, "custom_checkbox": False, "custom_date": False, "custom_dropdown": False, "custom_expected": False, "custom_goals": False, "custom_milestone": False, "custom_mission": False, "custom_preconds": False, "custom_steps": False, "custom_steps_separated": False, "custom_url": False, "custom_version": False, "custom_status": False, "custom_assignee": False, "custom_scenario": False, "display_order": False, "estimate": False, "estimate_forecast": False, "id": False, "milestone_id": False, "priority_id": False, "refs": False, "row_number": False, "section_id": False, "suite_id": False, "display_order": False, "title": True, "template_id": False, "type_id": False, "updated_by": False, "updated_on": False, })
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Template = api.create_model_class("Template", { "id": False, "is_default": False, "name": False, })
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Priority = api.create_model_class( "Priority", { "id": False, "is_default": False, "priority": False, "name": False, "short_name": False } )
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Status = api.create_model_class( "Status", { "color_bright": False, "color_dark": False, "color_medium": False, "id": False, "is_final": False, "is_system": False, "is_untested": False, "label": False, "name": False })
from src.models.api import create_model_class # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. project_fields = { "announcement": True, "completed_on": False, "id": False, "is_completed": False, "name": True, "show_announcement": True, "suite_mode": True, "url": False, } Project = create_model_class("Project", project_fields)
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Section = api.create_model_class( "Section", { "depth": False, "description": False, "display_order": False, "id": False, "name": True, "parent_id": False, "suite_id": False })
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Result = api.create_model_class( "Result", { "assignedto_id": False, "comment": False, "created_by": False, "created_on": False, "custom_step_results": False, "custom_steps": False, "defects": False, "elapsed": False, "id": False, "status_id": False, "test_id": False, "version": False, "attachment_ids": False, "id": False, "case_id": False, })
# Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Plan = api.create_model_class( "Plan", { 'id': False, 'name': True, 'description': False, 'milestone_id': False, 'assignedto_id': False, 'is_completed': False, 'completed_on': False, 'passed_count': False, 'blocked_count': False, 'untested_count': False, 'retest_count': False, 'failed_count': False, 'custom_status1_count': False, 'custom_status2_count': False, 'custom_status3_count': False, 'custom_status4_count': False, 'custom_status5_count': False, 'custom_status6_count': False, 'custom_status7_count': False, 'project_id': False, 'created_on': False, 'created_by': False, 'url': False, 'entries': False })
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Milestone = api.create_model_class( "Milestone", { "name": True, "description": False, "due_on": False, "parent_id": False, "start_on": False, "completed_on": False, "id": False, "is_completed": False, "is_started": False, "milestones": False, "project_id": False, "started_on": False, "url": False, } )
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Attachment = api.create_model_class("Attachment", { "attachment_id": True, })
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. User = api.create_model_class("User", { "email": False, "id": False, "is_active": False, "name": False, })
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. Config = api.create_model_class("Config", { "name": True, "id": False, "group_id": False, })
# Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. _Test = api.create_model_class( "Test", { "assignedto_id": False, "case_id": False, "estimate": False, "estimate_forecast": False, "id": False, "milestone_id": False, "priority_id": False, "refs": False, "run_id": False, "status_id": False, "title": False, "type_id": False, "template_id": False, "custom_automation_type": False, 'custom_preconds': False, 'custom_steps': False, 'custom_expected': False, 'custom_steps_separated': False, 'custom_mission': False, 'custom_goals': False, } ) class Test(_Test): # Needed so that pytest won't think this is a test class __test__ = False
from src.models import api # Fields required for creating an entity have a value of True # Fields that are optional or present only on a newly created # entity are False. ConfigGroup = api.create_model_class("ConfigGroup", { "name": True, "id": False, 'project_id': False, 'configs': False })