restore the test_publish function

This commit is contained in:
Kayla Man 2024-06-11 16:02:42 +08:00
parent 838fa0cdab
commit 49400e4129

View file

@ -73,16 +73,6 @@ def recursive_validate(valid_action_names):
""" """
context = pyblish.api.Context() context = pyblish.api.Context()
context.data["create_context"] = CreateContext(registered_host()) context.data["create_context"] = CreateContext(registered_host())
project_name = get_current_project_name()
folder_path = get_current_folder_path()
folder_entity = ayon_api.get_folder_by_path(
project_name, folder_path)
context.data["folderEntity"] = folder_entity
if folder_entity:
task_name = get_current_task_name
context.data["taskEntity"] = ayon_api.get_task_by_name(
project_name, folder_entity["id"], task_name
)
context = pyblish.util.collect(context) context = pyblish.util.collect(context)
pyblish.util.validate(context) pyblish.util.validate(context)