Skip to content

Commit 1de632a

Browse files
fix: correct fixture type and attribute access in pause/resume test
- Change parameter type from Workflow to WorkflowVersion - Use workflow_external_id instead of external_id attribute - Fixes AttributeError: 'WorkflowVersionUpsert' object has no attribute 'external_id'
1 parent 88dd7a0 commit 1de632a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests_integration/test_api/test_workflows.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,12 +765,12 @@ def test_trigger_run_history_non_existing(self, cognite_client: CogniteClient) -
765765
def test_pause_resume_trigger(
766766
self,
767767
cognite_client: CogniteClient,
768-
permanent_workflow_for_triggers: Workflow,
768+
permanent_workflow_for_triggers: WorkflowVersion,
769769
) -> None:
770770
trigger_external_id = f"integration_test-pause_resume_trigger-{int(time.time())}"
771771
trigger_upsert = WorkflowTriggerUpsert(
772772
external_id=trigger_external_id,
773-
workflow_external_id=permanent_workflow_for_triggers.external_id,
773+
workflow_external_id=permanent_workflow_for_triggers.workflow_external_id,
774774
workflow_version=permanent_workflow_for_triggers.version,
775775
trigger_rule=WorkflowScheduledTriggerRule(cron_expression="0 0 * * *"),
776776
)

0 commit comments

Comments
 (0)