-
Notifications
You must be signed in to change notification settings - Fork 1
Property Class Integration Tests #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces comprehensive integration tests for the Property class, covering both pre-existing material properties and custom properties. The implementation includes test data generation utilities, new test markers for organizing property-related tests, and validation of property metadata, field operations, and field lifecycle management.
Key Changes:
- Added integration test suite with 14 test methods covering property initialization, metadata validation, field operations (create, update, hide, delete), and multi-field scenarios
- Implemented data generation methods that create JSON test fixtures for material and custom properties
- Introduced hierarchical pytest markers (
prop,material_property,custom_property) for flexible test execution
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/api/integration_tests/test_integration_property.py | New integration test file with test classes for material and custom properties |
| tests/api/integration_tests/data/data_generation/generate_data.py | Added data generation methods for material and custom property test fixtures |
| tests/api/integration_tests/data/material_property_data.json | New JSON fixture containing material property test data |
| tests/api/integration_tests/data/custom_property_data.json | New JSON fixture containing custom property test data |
| tests/api/integration_tests/data/metadata.json | Added metadata entries for new test data files |
| tests/api/integration_tests/constants.py | Added constants for property tests including material database types and field properties |
| pytest.ini | Registered new pytest markers for property tests |
| child_markers.json | Defined marker hierarchy for property test organization |
| tests/api/unit_tests/test_unit_property.py | Added prop marker to existing unit test class |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tests/api/integration_tests/data/data_generation/generate_data.py
Outdated
Show resolved
Hide resolved
…-api into property-tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tests/api/integration_tests/data/data_generation/generate_data.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* VectorArray Integration Tests * Bracket fixes * Add SPDX header * Removed read only tag * Vector Class Integration Tests (#6) * Vector Class Integration Tests * Review Fixes * Fixes * Brackets fix * Adding SPDX header * Type order fix * StringArray Class Integration Tests (#11) * StringArray Class Tests * to_list function fix * add spdx headers * IntegerArray Class Integration Tests (#10) * IntegerArray Class Integration Tests * Docstring fixes * Review comments fixes * Add SPDX Header * DoubleArray Class Integration Tests (#9) * DoubleArray Class Integration Tests * Updating unit test * Add SPDX Header * ImportOptions Class Integration Tests (#17) * ImportOptions class integration tests * Marker additions * Code review fixes * MeshSummary Class Integration Tests (#25) * Adding models and model fixtures * MeshSummary Integration Tests * Test Data Generation and Test fixes * README update * README update * Comment fix * Synergy Class Integration Tests (#30) * Adding models and model fixtures * MeshSummary Integration Tests * Test Data Generation and Test fixes * README update * README update * Comment fix * Add non-model based data generation * Synergy Integration Tests * Adding pygetwindow to requirements * Windows size updates and Fixture updates * Copilot review fixes * Zipping study_files * Zip File name changes * Metadata for Test data * Unzip files in test data generation * README updates * Review fixes * Removed ModelType enum * Review fixes * Lint fixes * Project clean up * Revert "Project clean up" This reverts commit 1f16653. * Remove edition assert * CADManager Class Integration Tests (#31) * CADManager Integration Tests * CADManager none tests * Review comment fix * Add Parent-Child Markers, JSON File Name Marker, and Synergy Required Field to Test Data Generation (#32) * Child Markers, Json File Name marker, Synergy in data generation * Review fixes * Review fixes * Property Class Integration Tests (#33) * Property Integration Tests and Child Markers introduction * New Infrastructural changes for the Integration Tests branch (#35) * New Infra * Updating readme, removing childmarkers * Review fix * Timezone added to metadata, docopt command clarification * EntList Integration Tests (#34) * EntList Integration Tests * Update tests/api/integration_tests/test_integration_ent_list.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * SelectFromSavedList function test * Refactoring for new infra * SavedList tests * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * PredicateManager Integration Tests (#38) * PredicateManager Integration Tests * Add marker to unit test * Removing metadata file from integration tests (#55) * Remove metadata from integration tests * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * PropertyEditor Integration Tests (#56) * PropertyEditor Integration Tests * Review fixes * MDLKernel test update --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Description
This PR introduces the integration tests for the
Propertyclass.Changes in this PR:
datafolder withmaterial_property_dataandcustom_property_datafilematerial_propertyandcustom_propertytest_integration_property.pychild_markers.jsonfilepropand its childrenmaterial_propertyandcustom_propertypropertypytest marker to thetest_unit_property.pyclassType of change
Please delete options that are not relevant.
Checklist
Please delete options that are not relevant.
Testing
Added Integration Tests for the Property class
For all property class tests:
To run tests only on the default material property in Synergy:
To run tests on a new custom property created for testing:
Test Data Generation
Parent
propChild
material_propertyChild
custom_propertyTest Run:
Additional Notes
N/A