Skip to content

[19.0][FWD] component: test setup#536

Merged
OCA-git-bot merged 2 commits into
OCA:19.0from
camptocamp:19.0-fwd-component_test_setup
Jun 17, 2026
Merged

[19.0][FWD] component: test setup#536
OCA-git-bot merged 2 commits into
OCA:19.0from
camptocamp:19.0-fwd-component_test_setup

Conversation

@SilvioC2C

Copy link
Copy Markdown
Contributor

No description provided.

Class ``TransactionComponentCase.setUp()`` was not calling ``super()`` because of an inheritance issue:
 ``odoo.tests.common.TransactionCase.setUp()`` was not calling ``super()`` either.

Since the issue has been solved, the test setup can be improved, allowing subclasses that inherit
 from ``TransactionComponentCase`` to correctly resolve the chain of ``super().setUp()`` calls.
Commit 96d9f26 improved test setup, but introduced a bug: the components registry was never flagged as 'ready' anymore.
This commit fixes such bug.
@simahawk

Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 19.0-ocabot-merge-pr-536-by-simahawk-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 7fb4a7e into OCA:19.0 Jun 17, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at f29c285. Thanks a lot for contributing to OCA. ❤️

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants