Skip to content

TEST: Rename target/ to prompt_target/ and add target tests#1595

Open
romanlutz wants to merge 2 commits intomicrosoft:mainfrom
romanlutz:test/prompt-target-coverage
Open

TEST: Rename target/ to prompt_target/ and add target tests#1595
romanlutz wants to merge 2 commits intomicrosoft:mainfrom
romanlutz:test/prompt-target-coverage

Conversation

@romanlutz
Copy link
Copy Markdown
Contributor

Summary

Renames the test directory to match the source package and adds unit tests for 4 previously untested prompt target files.

Changes

Directory Rename

  • \ ests/unit/target/\ → \ ests/unit/prompt_target/\ (matches \pyrit/prompt_target/)

New Test Files (4)

Source File Tests Coverage
\ ext_target.py\ 7 Init (stdout/custom stream), send_prompt writes to stream, cleanup
\�atch_helper.py\ 13 Chunking, rate limit validation, batch_task_async
\common/utils.py\ 15 Temperature/top_p validation, rate limiting decorator
\common/prompt_chat_target.py\ 8 Default/custom capabilities, set_system_prompt, response format

Testing

All 43 new tests pass locally.

romanlutz and others added 2 commits April 11, 2026 18:03
Renames the test directory to match the source package name.

Adds unit tests for previously untested prompt target files:
- TextTarget (text_target.py)
- BatchHelper (batch_helper.py)
- Target utilities (common/utils.py)
- PromptChatTarget base (common/prompt_chat_target.py)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant