Skip to content

Add unit test coverage for WorkflowToPythonService #9662

Todo

Description

@anishshiva7

Task Summary

Add workflow-to-python.service.spec.ts for WorkflowToPythonService. It has no spec. Its only caller, the workspace menu, mocks it in menu.component.spec.ts, so the request it sends is not pinned anywhere.

Behavior to pin

Scenario Contract
convertToPython(plan) one POST {api}/workflow-to-python with Content-Type: application/json
request body the plan's operators and links, with opsToReuseResult: [] and opsToViewResult: []; no other fields of the plan are sent
empty plan still posts, with empty operators / links
success response type, pythonCode, helpersModule, renamedSources reach the subscriber as returned
failure response a { type: "failure", errorMessage } body is passed through, not thrown
HTTP error reaches the subscriber's error callback

Scope

  • New spec: frontend/src/app/dashboard/service/user/workflow-to-python/workflow-to-python.service.spec.ts.
  • No production-code changes.

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Activity

  1. github-actions commented on Nov 24, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @anishshiva7!

    It looks like the issue description doesn't quite follow our template yet:

    • This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

  2. anishshiva7 commented on Nov 24, 2026

    @anishshiva7
    ContributorAuthor

    /take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions