Skip to content

Commit

Permalink
Create new scene before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
debloip-adsk committed Feb 2, 2024
1 parent 3148c15 commit e67cefa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/testUtils/mtohUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ def setUpClass(cls):
"define `_file = __file__`")
fixturesUtils.readOnlySetUpClass(cls._file, 'mayaHydra',
initializeStandalone=False)

def setUp(self):
# Maya is not closed/reset between each test of a test suite,
# so open a new file before each test to minimize leftovers
# from previous tests.
cmds.file(new=True, force=True)

def setHdStormRenderer(self):
self.activeEditor = cmds.playblast(activeEditor=1)
Expand Down

0 comments on commit e67cefa

Please sign in to comment.