Skip to content

Commit

Permalink
Make the tests work when mayausd is not used to build maya hydra
Browse files Browse the repository at this point in the history
  • Loading branch information
lanierd-adsk committed Feb 5, 2024
1 parent cbaa038 commit 3e92799
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
import unittest
import testUtils
import mayaUtils
import usdUtils
import ufe
import usdUfe
from pxr import Usd, Sdf

class TestUsdStagePayloadsAndReferences(mtohUtils.MtohTestCase): #Subclassing mtohUtils.MtohTestCase to be able to call self.assertSnapshotClose
Expand Down Expand Up @@ -72,6 +70,7 @@ def setUpPayloadScene(self):
cmds.file(new=True, force=True)
import mayaUsd_createStageWithNewLayer
from mayaUsd import lib as mayaUsdLib
import usdUtils

self.setHdStormRenderer()

Expand Down Expand Up @@ -99,7 +98,8 @@ def setUpPayloadScene(self):
@unittest.skipUnless(mtohUtils.checkForMayaUsdPlugin(), "Requires Maya USD Plugin.")
def test_UsdStagePayloadsOnTheFly(self):
import mayaUsd.ufe

import usdUfe

self.setUpPayloadScene()

primUfePath = "|stage1|stageShape1,/A"
Expand Down

0 comments on commit 3e92799

Please sign in to comment.