Skip to content

intergration testing #8

@mofex99

Description

@mofex99

Create a comprehensive test that simulates the full workflow:

  • Mock the Google Speech-to-Text API to return a fake transcript.
  • Mock the Gemini API (LLM) to return structured task data from the transcript.
  • Simulate a POST request to the /api/transcribe endpoint (if needed).
  • Simulate a POST request to /api/save_task with the mocked Gemini output.
  • Verify that the task is successfully saved to the database using get_all_tasks().

Goals:

  • Validate that the full transcription-to-task flow works end-to-end.
  • Ensure test reliability by monkey patching external dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions