tcms.rpc.api.plantype module

tcms.rpc.api.plantype.create(values)[source]
RPC PlanType.create(values)

Create a new PlanType object and store it in the database.

Parameters:

values (dict) – Field values for tcms.testplans.models.PlanType

Returns:

Serialized tcms.testplans.models.PlanType object

Return type:

dict

Raises:
  • ValueError – if input values don’t validate

  • PermissionDenied – if missing testplans.add_plantype permission

tcms.rpc.api.plantype.filter(query)[source]
RPC PlanType.filter(query)

Search and return a list of test plan types.

Parameters:

query (dict) – Field lookups for tcms.testplans.models.PlanType

Returns:

Serialized list of tcms.testplans.models.PlanType objects

Return type:

dict