Skip to content

Commit

Permalink
Merge pull request #126 from ynput/chore/limit_extract_active_view_fo…
Browse files Browse the repository at this point in the history
…r_automatic_testing

Skip extraction of active view for automatic tests
  • Loading branch information
kalisp authored Sep 27, 2024
2 parents 29ab54c + 3623ee8 commit 4d7530a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import tempfile

from ayon_core.lib import is_in_tests

import maya.api.OpenMaya as om
import maya.api.OpenMayaUI as omui
import pyblish.api
Expand All @@ -20,7 +22,7 @@ class ExtractActiveViewThumbnail(plugin.MayaInstancePlugin):
families = ["workfile"]

def process(self, instance):
if IS_HEADLESS:
if IS_HEADLESS or is_in_tests():
self.log.debug(
"Skip extraction of active view thumbnail, due to being in"
"headless mode."
Expand Down

0 comments on commit 4d7530a

Please sign in to comment.