Skip to content

Odoo 19: Restore FastAPI transaction commit/rollback assertion test #54

@jeremi

Description

@jeremi

Background

test_no_commit_on_exception is skipped because the current Odoo 19 HTTP test runner path does not trigger the mocked commit hook as expected.

Skipped test

  • test_no_commit_on_exception

Goal

Rework the test/mocking approach so transaction commit/rollback behavior is asserted correctly in Odoo 19.

Acceptance criteria

  • Remove skip decorator.
  • Commit/rollback behavior is asserted with a reliable Odoo 19-compatible mechanism.
  • Test is stable in CI.

References

  • fastapi/tests/test_fastapi.py

Metadata

Metadata

Assignees

No one assigned

    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