Skip to content

Commit

Permalink
HYDRA-861 : Adjust testRefinement and testUsdNativeInstancePicking + …
Browse files Browse the repository at this point in the history
…remove a bunch of unused imports
  • Loading branch information
debloip-adsk committed Mar 26, 2024
1 parent 2772837 commit 31354e8
Show file tree
Hide file tree
Showing 25 changed files with 2 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import fixturesUtils
import mtohUtils
import unittest

from testUtils import PluginLoaded

Expand Down
2 changes: 0 additions & 2 deletions test/lib/mayaUsd/render/mayaToHydra/cpp/testPathInterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

from testUtils import PluginLoaded

import unittest

class TestPathInterface(mtohUtils.MayaHydraBaseTestCase):
# MayaHydraBaseTestCase.setUpClass requirement.
_file = __file__
Expand Down
1 change: 0 additions & 1 deletion test/lib/mayaUsd/render/mayaToHydra/cpp/testPicking.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import fixturesUtils
import mayaUtils
import mtohUtils
import unittest

from testUtils import PluginLoaded

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import maya.cmds as cmds
import fixturesUtils
import mtohUtils
import unittest
import usdUtils

import testUtils
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import fixturesUtils
import mtohUtils
import unittest

import testUtils
from testUtils import PluginLoaded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import fixturesUtils
import mtohUtils
import unittest

import testUtils
from testUtils import PluginLoaded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@
import maya.cmds as cmds
import fixturesUtils
import mtohUtils
import unittest
import usdUtils

import testUtils
from testUtils import PluginLoaded

class TestUsdNativeInstancePicking(mtohUtils.MtohTestCase):
class TestUsdNativeInstancePicking(mtohUtils.MayaHydraBaseTestCase):
# MayaHydraBaseTestCase.setUpClass requirement.
_file = __file__

Expand All @@ -36,7 +35,6 @@ def setUp(self):
self.loadUsdScene()
cmds.refresh()

@unittest.skipUnless(mtohUtils.checkForMayaUsdPlugin(), "Requires Maya USD Plugin.")
def test_NativeInstances(self):
with PluginLoaded('mayaHydraCppTests'):
instances = ["/cubes_1", "/cubes_2"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import fixturesUtils
import mtohUtils
import unittest

from testUtils import PluginLoaded

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import mayaUtils
from testUtils import PluginLoaded

import unittest

class TestWireframeSelectionHighlightSceneIndex(mtohUtils.MayaHydraBaseTestCase):
# MayaHydraBaseTestCase.setUpClass requirement.
_file = __file__
Expand Down
1 change: 0 additions & 1 deletion test/lib/mayaUsd/render/mayaToHydra/testArnoldLights.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import fixturesUtils
import mtohUtils
import mayaUtils
import unittest
import platform

class TestArnoldLights(mtohUtils.MayaHydraBaseTestCase): #Subclassing mtohUtils.MayaHydraBaseTestCase to be able to call self.assertSnapshotClose
Expand Down
7 changes: 0 additions & 7 deletions test/lib/mayaUsd/render/mayaToHydra/testImageDiffing.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import os.path
import sys
import unittest

import maya.cmds as cmds
import maya.mel

import fixturesUtils
import mtohUtils

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import mayaUtils
import fixturesUtils
import mtohUtils
import unittest

class TestMaterialXOnNative(mtohUtils.MayaHydraBaseTestCase):
_file = __file__
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import fixturesUtils
import mtohUtils
import mayaUtils
import unittest
from testUtils import PluginLoaded

import platform
Expand Down
1 change: 0 additions & 1 deletion test/lib/mayaUsd/render/mayaToHydra/testMayaLights.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import fixturesUtils
import mtohUtils
import mayaUtils
import unittest

import platform

Expand Down
1 change: 0 additions & 1 deletion test/lib/mayaUsd/render/mayaToHydra/testMayaUsdAPIUsage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import maya.cmds as cmds
import fixturesUtils
import mtohUtils
import unittest
import mayaUtils
import platform

Expand Down
5 changes: 0 additions & 5 deletions test/lib/mayaUsd/render/mayaToHydra/testMtohBasicRender.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@
# limitations under the License.
#
# Test to make sure that our snapshot-comparison tools work

import os.path
import sys
import unittest

import maya.cmds as cmds
import maya.mel

Expand Down
3 changes: 0 additions & 3 deletions test/lib/mayaUsd/render/mayaToHydra/testMtohDagChanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
import sys
import unittest

import maya.cmds as cmds
import maya.mel

Expand Down
2 changes: 0 additions & 2 deletions test/lib/mayaUsd/render/mayaToHydra/testNewSceneWithStage.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import fixturesUtils
import mtohUtils

import unittest

class TestStage(mtohUtils.MayaHydraBaseTestCase):
# MayaHydraBaseTestCase.setUpClass requirement.
_file = __file__
Expand Down
4 changes: 1 addition & 3 deletions test/lib/mayaUsd/render/mayaToHydra/testRefinement.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@

import fixturesUtils
import mtohUtils
import unittest
import testUtils

class TestRefinement(mtohUtils.MtohTestCase):
class TestRefinement(mtohUtils.MayaHydraBaseTestCase):
_file = __file__

IMAGEDIFF_FAIL_THRESHOLD = 0.01
Expand All @@ -31,7 +30,6 @@ def verifySnapshot(self, imageName):
self.IMAGEDIFF_FAIL_THRESHOLD,
self.IMAGEDIFF_FAIL_PERCENT)

@unittest.skipUnless(mtohUtils.checkForMayaUsdPlugin(), "Requires Maya USD Plugin.")
def test_usdPrim(self):
import usdUtils
usdScenePath = testUtils.getTestScene('testStagePayloadsReferences', 'cube.usda')
Expand Down
1 change: 0 additions & 1 deletion test/lib/mayaUsd/render/mayaToHydra/testSceneBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.
#
import maya.cmds as cmds
import maya.mel as mel

import fixturesUtils
import mtohUtils
Expand Down
5 changes: 0 additions & 5 deletions test/lib/mayaUsd/render/mayaToHydra/testStageAddPrim.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@

import fixturesUtils
import mtohUtils
import mayaUtils
from testUtils import PluginLoaded

import unittest
import sys

class TestStage(mtohUtils.MayaHydraBaseTestCase):
# MayaHydraBaseTestCase.setUpClass requirement.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import maya.cmds as cmds
import fixturesUtils
import mtohUtils
import unittest
import testUtils
import mayaUtils
import ufe
Expand Down
2 changes: 0 additions & 2 deletions test/lib/mayaUsd/render/mayaToHydra/testStageVariants.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
import maya.cmds as cmds
import fixturesUtils
import mtohUtils
import unittest
import testUtils
import mayaUtils
import ufe

Expand Down
2 changes: 0 additions & 2 deletions test/lib/mayaUsd/render/mayaToHydra/testTransforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@
# limitations under the License.
#
import maya.cmds as cmds
import maya.mel

import fixturesUtils
import mtohUtils
import unittest

class TestTransforms(mtohUtils.MayaHydraBaseTestCase):
_file = __file__
Expand Down
1 change: 0 additions & 1 deletion test/lib/mayaUsd/render/mayaToHydra/testUSDLights.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import fixturesUtils
import mtohUtils
import mayaUtils
import unittest
import platform

class TestUSDLights(mtohUtils.MayaHydraBaseTestCase): #Subclassing mtohUtils.MayaHydraBaseTestCase to be able to call self.assertSnapshotClose
Expand Down

0 comments on commit 31354e8

Please sign in to comment.