Skip to content

Commit

Permalink
Merge branch 'wip-NXDRIVE-2873-Handle-workflow-in-drive' of https://g…
Browse files Browse the repository at this point in the history
…ithub.com/nuxeo/nuxeo-drive into wip-NXDRIVE-2912-Display-drive-notification-for-document-review
  • Loading branch information
gitofanindya committed Jun 20, 2024
2 parents 32ce90e + 1befb08 commit c46c7c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nxdrive/client/workflow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from datetime import datetime, timedelta, timezone
from logging import getLogger
from typing import TYPE_CHECKING, Dict, List
from typing import Dict, List

from nuxeo.models import Task

from nxdrive.engine.engine import Engine

if TYPE_CHECKING:
from ..remote_client import Remote # noqa
from ..remote_client import Remote # noqa

log = getLogger(__name__)

Expand Down
4 changes: 4 additions & 0 deletions tests/unit/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from nxdrive.client.remote_client import Remote
from nxdrive.client.workflow import Workflow
from nxdrive.feature import Feature
from nxdrive.gui.api import QMLDriveApi
from nxdrive.gui.application import Application
from nxdrive.gui.view import EngineModel
Expand Down Expand Up @@ -116,6 +117,9 @@ def test_poll_initial_trigger(workflow_worker, manager, application):
workflow_worker.manager = None
assert not workflow_worker._poll()

# Set tasks_management feature as True
Feature.tasks_management = True

# with engines
engine_model = EngineModel(application)
engine_model.engines_uid = ["engine_uid"]
Expand Down

0 comments on commit c46c7c0

Please sign in to comment.