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

Add tests for sets command and for isolate select in Vp2RenderDelegate. #1678

Merged
merged 4 commits into from
Sep 22, 2021

Conversation

williamkrick
Copy link
Contributor

No description provided.

@williamkrick williamkrick added unit test Related to unit tests (both python or c++) vp2renderdelegate Related to VP2RenderDelegate labels Sep 2, 2021
@williamkrick williamkrick added the do-not-merge-yet Development is not finished, PR not ready for merge label Sep 2, 2021
@williamkrick
Copy link
Contributor Author

I have one additional Maya change that is necessary to prevent the isolate select test from crashing, so do not merge this until that change is available.

Copy link
Collaborator

@ppt-adsk ppt-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testSetsCmd looks pretty good already, does need some undo / redo testing though.

def setUpClass(cls):
# The test USD data is authored Z-up, so make sure Maya is configured
# that way too.
# cmds.upAxis(axis='z')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out?

Comment on lines 22 to 25
import ufeUtils
import usdUtils

import mayaUsd.ufe
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think any of these are used.

Comment on lines 32 to 34
import ufe

import os
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused.

@williamkrick williamkrick force-pushed the krickw/MAYA-113057/isolate_select_regression_tests branch from 2147b3e to a231d29 Compare September 10, 2021 17:24
cmds.sets( usdCube, add=set1 ) # Add Cube1 to set1
self.assertTrue(cmds.sets( usdCube, im=set1 )) # Test if Cube1 is in set1

# Undo, Redo
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like redo() never actually made it into the file :)

@williamkrick williamkrick removed the do-not-merge-yet Development is not finished, PR not ready for merge label Sep 20, 2021

# Turn on isolate select for cube
cmds.select(usdCube)
cmds.isolateSelect("modelPanel4", state=1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this function use the result of mayaUtils.activeModelPanel() as first parameter? Would it make the test more robust?

@williamkrick williamkrick added the ready-for-merge Development process is finished, PR is ready for merge label Sep 22, 2021
@kxl-adsk kxl-adsk merged commit a243554 into dev Sep 22, 2021
@kxl-adsk kxl-adsk deleted the krickw/MAYA-113057/isolate_select_regression_tests branch September 22, 2021 14:09
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++) vp2renderdelegate Related to VP2RenderDelegate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants