Skip to content

Refactor test_data.py : Improved Exception Handling and Code Readability#2573

Open
SAILESH4406 wants to merge 1 commit intoDeepSourceCorp:masterfrom
SAILESH4406:fix-2273-data-tests
Open

Refactor test_data.py : Improved Exception Handling and Code Readability#2573
SAILESH4406 wants to merge 1 commit intoDeepSourceCorp:masterfrom
SAILESH4406:fix-2273-data-tests

Conversation

@SAILESH4406
Copy link

Summary

This pull request addresses Issue #2273 by refactoring the test_data.py file.
The main goal is to improve exception handling, code readability, and maintainability of the data sanity tests.

Changes Made

  • Added robust exception handling for reading TOML and JSON files.
  • Added informative docstrings for all test methods.

How to Test

  1. Clone the branch.
  2. Run the test suite:
    python gfi/test_data.py
  3. Confirm that all tests pass without errors.

AI Usage Disclosure

Parts of this code were generated with the assistance of AI.
All changes have been manually reviewed, tested, and verified to work correctly.

@vercel
Copy link

vercel bot commented Feb 1, 2026

@SAILESH4406 is attempting to deploy a commit to the DeepSource Team on Vercel.

A member of the Team first needs to authorize it.

@SAILESH4406 SAILESH4406 changed the title Refactor test_data.py for Issue #2273: Improved Exception Handling and Code Readability Refactor test_data.py : Improved Exception Handling and Code Readability Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant