Merge pull request #3202 from pypeclub/bugfix/photoshop_no_plugin_when_test

Photoshop: skip collector when automatic testing
This commit is contained in:
Petr Kalis 2022-05-18 10:02:56 +02:00 committed by GitHub
commit e9930049f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,9 @@ class CollectBatchData(pyblish.api.ContextPlugin):
def process(self, context):
self.log.info("CollectBatchData")
batch_dir = os.environ.get("OPENPYPE_PUBLISH_DATA")
if os.environ.get("IS_TEST"):
self.log.debug("Automatic testing, no batch data, skipping")
return
assert batch_dir, (
"Missing `OPENPYPE_PUBLISH_DATA`")