Skip to content

Added unit test coverage for Validate class.#1012

Merged
mauteri merged 2 commits intodevelopfrom
unit-tests
Feb 16, 2025
Merged

Added unit test coverage for Validate class.#1012
mauteri merged 2 commits intodevelopfrom
unit-tests

Conversation

@mauteri
Copy link
Copy Markdown
Contributor

@mauteri mauteri commented Feb 16, 2025

Description of the Change

Closes #

How to test the Change

Changelog Entry

Added - New feature
Changed - Existing functionality
Deprecated - Soon-to-be removed feature
Removed - Feature
Fixed - Bug fix
Security - Vulnerability

Credits

Props @username, @username2, ...

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@what-the-diff
Copy link
Copy Markdown

what-the-diff bot commented Feb 16, 2025

PR Summary

  • Introduction of Version Annotation
    The system now has annotations indicating the version (@since 1.0.0) attached to multiple testing methods.

  • Enhancement in Data Validation
    New tests, test_boolean, test_valid_block_data, test_invalid_json, and test_missing_required_properties have been introduced.

    • test_boolean checks the validity of various boolean inputs.
    • test_valid_block_data checks whether block data has the expected structure.
    • test_invalid_json measures how our system responds to invalid JSON inputs.
    • test_missing_required_properties evaluates our system's handling of missing required fields in data blocks.
  • Support for Invalid Data Types
    New features have been added to deal with invalid data types. A data provider (data_invalid_property_types_provider) offers diverse invalid data types for test cases. A test called test_invalid_property_types has been created to verify the system's response when handling incorrect data types.

  • Test Simulating Complex Structures
    A test named test_complex_nested_blocks has been added. It's designed to validate the system's handling and validation capabilities on intricate nested block data structures.

@mauteri mauteri marked this pull request as ready for review February 16, 2025 20:54
@mauteri mauteri merged commit c48fb79 into develop Feb 16, 2025
10 checks passed
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