Skip to content

TEST: Add unit tests for pyrit/identifiers/ module#1597

Merged
varunj-msft merged 3 commits intomicrosoft:mainfrom
romanlutz:test/identifiers-coverage
Apr 13, 2026
Merged

TEST: Add unit tests for pyrit/identifiers/ module#1597
varunj-msft merged 3 commits intomicrosoft:mainfrom
romanlutz:test/identifiers-coverage

Conversation

@romanlutz
Copy link
Copy Markdown
Contributor

Summary

Adds unit tests for 2 previously untested identifiers files.

New Test Files

Source File Tests Coverage
\class_name_utils.py\ 18 PascalCase↔snake_case conversion, suffix stripping, acronyms, round-trips
\identifier_filters.py\ 16 Enum values, dataclass defaults, validation errors, frozen immutability, equality, hashability

Testing

All 34 tests pass locally.

romanlutz and others added 3 commits April 11, 2026 18:04
Adds tests for:
- class_name_utils.py (PascalCase/snake_case conversion, suffix stripping)
- identifier_filters.py (enum values, dataclass validation, immutability)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@varunj-msft varunj-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@varunj-msft varunj-msft merged commit 4a941ae into microsoft:main Apr 13, 2026
38 checks passed
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.

2 participants