Add automated targets for tests (#5443)

Without it plugins with 'automated' targets won't be triggered (eg `CloseAE` etc.)
This commit is contained in:
Petr Kalis 2023-08-11 11:17:38 +02:00 committed by GitHub
parent ea3f26031d
commit 899482c0af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,7 @@ from openpype.client import (
from openpype.lib.events import emit_event
from openpype.modules import load_modules, ModulesManager
from openpype.settings import get_project_settings
from openpype.tests.lib import is_in_tests
from .publish.lib import filter_pyblish_plugins
from .anatomy import Anatomy
@ -142,6 +143,10 @@ def install_host(host):
else:
pyblish.api.register_target("local")
if is_in_tests():
print("Registering pyblish target: automated")
pyblish.api.register_target("automated")
project_name = os.environ.get("AVALON_PROJECT")
host_name = os.environ.get("AVALON_APP")