Skip to content

TEST: Add unit tests for prompt_converter_configuration.py#1599

Merged
romanlutz merged 7 commits intomicrosoft:mainfrom
romanlutz:test/prompt-normalizer-coverage
Apr 13, 2026
Merged

TEST: Add unit tests for prompt_converter_configuration.py#1599
romanlutz merged 7 commits intomicrosoft:mainfrom
romanlutz:test/prompt-normalizer-coverage

Conversation

@romanlutz
Copy link
Copy Markdown
Contributor

Summary

Adds unit tests for the previously untested PromptConverterConfiguration class.

New Test File

tests/unit/prompt_normalizer/test_prompt_converter_configuration.py - 7 tests covering:

  • Init with converters, all fields, multiple converters
  • from_converters factory method (empty list, single, multiple converters)
  • Default verification

Testing

All 7 tests pass locally.

romanlutz and others added 5 commits April 11, 2026 18:04
Tests PromptConverterConfiguration init, defaults, and from_converters factory.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
apply_defaults registers concrete class names, not abstract base names.
Check for 'converter_target' instead of 'PromptConverter.converter_target'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread tests/unit/prompt_normalizer/test_prompt_converter_configuration.py Outdated
@romanlutz romanlutz merged commit bc2c0b7 into microsoft:main Apr 13, 2026
38 checks passed
@romanlutz romanlutz deleted the test/prompt-normalizer-coverage branch April 13, 2026 22:23
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.

3 participants