Skip to content

Fix bug in scripts/gen_seed_data.py#360

Merged
m-goggins merged 2 commits into
mainfrom
bug/fix-gen-seed-data-script
May 8, 2025
Merged

Fix bug in scripts/gen_seed_data.py#360
m-goggins merged 2 commits into
mainfrom
bug/fix-gen-seed-data-script

Conversation

@m-goggins

@m-goggins m-goggins commented May 7, 2025

Copy link
Copy Markdown
Collaborator

Description

Somewhere in our updates to PIIRecord, we change the expectation for Race to a string. Faker produces a Race object, which I changed to a string so that we can continue to run gen_seed_data.py.

Original error:

pii.py", line 411, in parse_race
    return [Race.parse(v) for v in value]
                                   ^^^^^
TypeError: 'Race' object is not iterable

Related Issues

Fixes #359

Additional Notes

I'm guessing this script will be useful for jurisdictions testing out Record Linker so I wanted to make sure it stayed current.

@m-goggins m-goggins marked this pull request as ready for review May 7, 2025 20:46
@codecov

codecov Bot commented May 7, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.51%. Comparing base (c83d8a0) to head (121055f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #360   +/-   ##
=======================================
  Coverage   98.51%   98.51%           
=======================================
  Files          33       33           
  Lines        1947     1947           
=======================================
  Hits         1918     1918           
  Misses         29       29           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread scripts/gen_seed_test_data.py Outdated
@m-goggins m-goggins requested a review from ericbuckley May 7, 2025 22:18
@m-goggins m-goggins merged commit de8e8a0 into main May 8, 2025
15 checks passed
@m-goggins m-goggins deleted the bug/fix-gen-seed-data-script branch May 8, 2025 15:55
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.

Fix bug in gen_seed_data script

2 participants