Skip to content

[cueman] Add Unit Tests for Query and Listing Commands #1930

@ramonfigueiredo

Description

@ramonfigueiredo

Describe the enhancement
Implement tests for all query commands that list jobs, frames, processes, and layers with filtering and pagination.

Version Number

Additional context
Create /cueman/tests/test_query_commands.py testing:

  • Frame listing (-lf) with layer and state filters
  • Process listing (-lp) with memory and duration filters
  • Layer listing (-ll) with formatting and statistics
  • Job info display (-info) with detailed output
  • Pagination with page and limit parameters
  • Filter combination validation
  • Empty result handling
  • Large dataset performance considerations

Mock job.getFrames(), job.getLayers(), opencue.api.getProcs(). Test various data sizes and filter combinations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions