Skip to content

Add unit tests for observal_cli/cmd_prompt.py #846

@Apoorvgarg-creator

Description

@Apoorvgarg-creator

Background

`observal_cli/cmd_prompt.py` (prompt registry CLI) has zero direct unit tests.

What needs to be done

Create `tests/test_cmd_prompt.py` covering happy paths for: list, get, push (with stubbed HTTP), and validation of prompt metadata (name, scope, schema constraints).

Files to touch

  • `tests/test_cmd_prompt.py` (new)

Reference implementation

  • `tests/test_pull_and_agent_cli.py` for HTTP-stubbed CLI tests.

Acceptance criteria

  • At least 5 test functions.
  • No real network calls.
  • `make test` passes.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions