Skip to content

Helper script: Add example csv files to database

Danny Love requested to merge helper-script into main

Description

I wrote a small utility for adding example data to a database file, and generated some entries for the provider directory.

I opted not to go for full test coverage / error handling for this one, since it isn't intended to be included with the final product. LMK if you feel differently.

Changes Made

  • Change 1: Wrote utility for adding data from csv
  • Change 2: Wrote basic command line interface for the utility
  • Change 3: Added CSV file with example provider_directory entries (generated by Chat GPT)
  • Change 4: Removed .pkt files from gitignore, and added .pkt version of provider_directory examples.
  • Change 4: Wrote some basic tests for table name matching

Test Plan

python3 -m pytest src/scripts/csv_to_database_file.py

Checklist

  • Code follows the project's coding style and conventions.
  • Automated tests for the changes have been added or existing tests have been updated.
  • Code coverage for new or modified code is maintained or improved.
  • The code builds and runs without errors or warnings.
  • Documentation has been updated to reflect the changes made.
  • All discussions and feedback on the PR have been addressed.
  • CI/CD pipelines pass successfully, including any required checks or tests.
  • The PR has been reviewed and approved by the designated reviewers.
Edited by Danny Love

Merge request reports

Loading