mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Add automated targets for tests (#5443)
Without it plugins with 'automated' targets won't be triggered (eg `CloseAE` etc.)
This commit is contained in:
parent
ea3f26031d
commit
899482c0af
1 changed files with 5 additions and 0 deletions
|
|
@ -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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue