Skip to content

[18.0][IMP] component: improve test setup#534

Merged
OCA-git-bot merged 1 commit into
OCA:18.0from
camptocamp:18.0-component-improve_test_setup
Jun 15, 2026
Merged

[18.0][IMP] component: improve test setup#534
OCA-git-bot merged 1 commit into
OCA:18.0from
camptocamp:18.0-component-improve_test_setup

Conversation

@SilvioC2C

Copy link
Copy Markdown
Contributor

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.

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.
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @guewen,
some modules you are maintaining are being modified, check this out!

@simahawk

Copy link
Copy Markdown
Contributor

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-534-by-simahawk-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 63fd2cb into OCA:18.0 Jun 15, 2026
6 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@SilvioC2C SilvioC2C changed the title [IMP] component: improve test setup [18.0][IMP] component: improve test setup Jun 15, 2026
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