Skip to content
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

EMSUSD-972 add unit test for circular relationships #3574

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

pierrebai-adsk
Copy link
Collaborator

The test revealed a flaw in the code that follows relations and connections. Fixed the code to not go into an infinite loop when there are circular relationships or connections.

  • Fix infinite recursion when relations or connections form a circle.
  • Added many test for connections, similar to those for relations.
  • Refactored the test code to allow testing relations or connections.
  • Added tests for circular targets.
  • Added test for mix or relationships and connections.

@pierrebai-adsk pierrebai-adsk added the do-not-merge-yet Development is not finished, PR not ready for merge label Jan 25, 2024
@pierrebai-adsk pierrebai-adsk self-assigned this Jan 25, 2024
@pierrebai-adsk pierrebai-adsk added adsk Related to Autodesk plugin unit test Related to unit tests (both python or c++) and removed do-not-merge-yet Development is not finished, PR not ready for merge labels Jan 25, 2024
The test revealed a flaw in the code that follows relations and connections. Fixed the code to not go into an infinite loop when there are circular relationships or connections.

- Fix infinite recursion when relations or connections form a circle.
- Added many test for connections, similar to those for relations.
- Refactored the test code to allow testing relations or connections.
- Added tests for circular targets.
- Added test for mix or relationships and connections.
@pierrebai-adsk pierrebai-adsk force-pushed the bailp/EMSUSD-972/more-copy-prim-unit-test branch from 458f315 to f81f80b Compare January 25, 2024 18:41
@pierrebai-adsk
Copy link
Collaborator Author

Seems I had to rebase to avoid github think I had a huge PR

@pierrebai-adsk pierrebai-adsk added the ready-for-merge Development process is finished, PR is ready for merge label Jan 25, 2024
@seando-adsk seando-adsk added workflows Related to in-context workflows and removed adsk Related to Autodesk plugin labels Jan 26, 2024
@seando-adsk seando-adsk merged commit e9b7bc0 into dev Jan 26, 2024
11 checks passed
@seando-adsk seando-adsk deleted the bailp/EMSUSD-972/more-copy-prim-unit-test branch January 26, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge Development process is finished, PR is ready for merge unit test Related to unit tests (both python or c++) workflows Related to in-context workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants