Skip to content

Add test coverage for parse_json_fields edge cases#1695

Open
tmdeveloper007 wants to merge 1 commit into
utksh1:mainfrom
tmdeveloper007:#1695
Open

Add test coverage for parse_json_fields edge cases#1695
tmdeveloper007 wants to merge 1 commit into
utksh1:mainfrom
tmdeveloper007:#1695

Conversation

@tmdeveloper007

Copy link
Copy Markdown
Contributor

Problem

parse_json_fields in backend/secuscan/routes_json_helpers.py has basic tests but lacks coverage for: non-existent fields, falsy non-string fields, and empty field lists.

Fix

  1. Add 8 additional unit tests covering the missing edge cases.

Acceptance Criteria

  • testing/backend/unit/test_routes_json_helpers.py extended with 8 new tests.
  • All tests pass locally.

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.

1 participant