Skip to content

Commit

Permalink
Merge pull request #2834 from dj-mcg/pr/Fix_Test_for_UFE2
Browse files Browse the repository at this point in the history
Skip new test if UFE attribute metadata not available
  • Loading branch information
seando-adsk authored Jan 23, 2023
2 parents 7fa11bd + f3f3e6f commit 681ae52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/lib/ufe/testAttribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -1961,7 +1961,8 @@ def testAttributeMetadataChanged(self):

self.assertEqual(str(attr.getMetadata(uisoftminKey)), str(value))

@unittest.skipUnless(Usd.GetVersion() >= (0, 22, 8), 'Requires a recent UsdLux API')
@unittest.skipUnless(Usd.GetVersion() >= (0, 22, 8) and ufeUtils.ufeFeatureSetVersion() >= 3,
'Requires a recent UsdLux API and UFE attribute metadata API')
def testAttributeNiceNames(self):
cmds.file(new=True, force=True)

Expand Down

0 comments on commit 681ae52

Please sign in to comment.