Skip to content

Test pii scan#34

Open
claesmk wants to merge 17 commits intomainfrom
test_pii_scan
Open

Test pii scan#34
claesmk wants to merge 17 commits intomainfrom
test_pii_scan

Conversation

@claesmk
Copy link
Copy Markdown
Contributor

@claesmk claesmk commented Jul 18, 2025

Add some checks to make sure base functionality working as expected and fix issues caused by 2.2.359

@claesmk claesmk self-assigned this Jul 18, 2025
@claesmk claesmk marked this pull request as draft July 18, 2025 01:17
@claesmk
Copy link
Copy Markdown
Contributor Author

claesmk commented Jul 19, 2025

@clintonoadebomi I thought you might like to participate in this code review. This issue explains what happened when the Presidio team make a change to the default recognizers. This is why most of your team's recognizers disappeared and needed to be added manually.

This comment was marked as outdated.

@claesmk claesmk marked this pull request as ready for review July 19, 2025 19:26
claesmk and others added 2 commits July 19, 2025 15:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@claesmk claesmk requested a review from Copilot July 19, 2025 19:29

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@claesmk claesmk requested a review from Copilot July 19, 2025 19:30

This comment was marked as outdated.

claesmk and others added 2 commits July 19, 2025 19:35
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@claesmk claesmk requested a review from Copilot July 19, 2025 19:37

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@claesmk claesmk requested a review from Copilot July 19, 2025 19:39

This comment was marked as outdated.

claesmk and others added 3 commits July 19, 2025 15:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@claesmk claesmk requested a review from Copilot July 19, 2025 19:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive unit tests for the PII scan module to verify base functionality and resolves issues introduced by Presidio version 2.2.359. The changes include new test coverage, additional recognizer imports, and minor formatting improvements.

  • Adds comprehensive test suite with entity verification, naming convention validation, and basic functionality tests
  • Updates imports to include new Indian and UK recognizers to fix compatibility issues
  • Improves code formatting and removes unnecessary whitespace

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
test_pii_scan.py New comprehensive test file with entity verification, test naming validation, and basic functionality tests
pii_scan.py Adds imports and registry entries for new Indian and UK recognizers, improves function parameter formatting
test_team_2.py Removes unnecessary blank line for cleaner formatting

Comment thread test_pii_scan.py Outdated
Comment thread test_pii_scan.py Outdated
Comment thread test_pii_scan.py Outdated
claesmk and others added 3 commits July 19, 2025 15:45
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+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.

3 participants