label-studio-sdk icon indicating copy to clipboard operation
label-studio-sdk copied to clipboard

fix: DIA-1428: Increase test coverage for Prompts/Predictions deletion

Open robot-ci-heartex opened this issue 1 year ago • 0 comments

Hi @niklub!

This PR was automaticaly generated via Follow Merge. Please ensure that all linked upstream Pull Requests are merged before proceeding with this one.

  • https://github.com/HumanSignal/label-studio-client-generator/pull/25 linked by Workflow Run

:rocket: This description was created by Ellipsis for commit 716e0e7c52cb7ff8e6c4f6532de47eb27632fb5c

fix: increase test coverage for prompt and prediction deletion

Summary:

Enhance test coverage and API functionality for prompt and prediction management, including CRUD operations for prompts and their versions.

Key points:

  • API Enhancements:
    • Added get, delete, and update methods for PromptsClient in client.py.
    • Added list, get, delete, and update methods for VersionsClient in versions/client.py.
  • Model Changes:
    • Updated PromptVersion in prompt_version.py to make fields optional.
  • Test Coverage:
    • Added tests for list, get, delete, and update methods in test_versions.py.
    • Added tests for get, delete, and update methods in test_prompts.py.

Generated with :heart: by ellipsis.dev

robot-ci-heartex avatar Sep 16 '24 10:09 robot-ci-heartex