Skip to content

[18.0][FIX] Fix tests due to change in Odoo upstream#567

Merged
OCA-git-bot merged 1 commit intoOCA:18.0from
acsone:18.0-fix-tests
Mar 18, 2026
Merged

[18.0][FIX] Fix tests due to change in Odoo upstream#567
OCA-git-bot merged 1 commit intoOCA:18.0from
acsone:18.0-fix-tests

Conversation

@lmignon
Copy link
Copy Markdown
Contributor

@lmignon lmignon commented Mar 17, 2026

No description provided.

@lmignon lmignon force-pushed the 18.0-fix-tests branch 2 times, most recently from 215f780 to 6369af3 Compare March 18, 2026 07:14
@lmignon lmignon changed the title [18.0][FIX] fs_image: Fix tests due to change in Odoo upstream [18.0][FIX] Fix tests due to change in Odoo upstream Mar 18, 2026
Copy link
Copy Markdown
Contributor

@CRogos CRogos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The change themes to work, but I am not an expert in this area.

But shouldn't we make one commit for each module with a correct commit massage?
[FIX] : ....

@@ -48,6 +48,11 @@ def cleanup_tempdir():

def setUp(self):
super().setUp()
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the result be returned at the end like in storage_thumbnail?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no result is expected when calling setUp.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know, but you did it different in the last module.

@lmignon
Copy link
Copy Markdown
Contributor Author

lmignon commented Mar 18, 2026

LGTM. The change themes to work, but I am not an expert in this area.

But shouldn't we make one commit for each module with a correct commit massage? [FIX] : ....

It's a transversal fix that will not be forward ported. It only changes tests.

@lmignon
Copy link
Copy Markdown
Contributor Author

lmignon commented Mar 18, 2026

/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-567-by-lmignon-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 320c1e6 into OCA:18.0 Mar 18, 2026
5 of 7 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

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

@lmignon lmignon deleted the 18.0-fix-tests branch March 18, 2026 12:14
# Remove check_attrs cleanup if exists to avoid conflict with FakeModelLoader.
# since superClass uses it for its own puposes not relevant for our tests.
check_attrs = (getattr(self, "check_attrs", None), tuple(), {})
if check_attrs in self._cleanups:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defining check_attrs empty should do the same while being more explicit on the intent and more resilient to Odoo changes.

class FsFolderTestCase(TransactionCase):
    # Remove tests that are incompatible with FakeModuleLoader
    def check_attrs(self):
        pass

Any reason to not do it this way ?

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.

4 participants