tcms.rpc.api.category module¶
- tcms.rpc.api.category.create(values)[source]¶
- RPC Category.create(values)
Create a new Category object and store it in the database.
- Parameters:
values (dict) – Field values for
tcms.testcases.models.Category
- Returns:
Serialized
tcms.testcases.models.Category
object- Return type:
- Raises:
ValueError – if input values don’t validate
PermissionDenied – if missing testcases.add_category permission
- tcms.rpc.api.category.filter(query)[source]¶
- RPC Category.filter(query)
Search and return Category objects matching query.
- Parameters:
query (dict) – Field lookups for
tcms.testcases.models.Category
- Returns:
List of serialized
tcms.testcases.models.Category
objects- Return type: