Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3202 from pypeclub/bugfix/photoshop_no_plugin_whe…
Browse files Browse the repository at this point in the history
…n_test

Photoshop: skip collector when automatic testing
  • Loading branch information
kalisp authored May 18, 2022
2 parents d0c66d2 + b2e1c4b commit e993004
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`")
Expand Down

0 comments on commit e993004

Please sign in to comment.