Skip to content

[FIX] test_generic: improve test using ast instead of regex#1926

Open
fw-bot wants to merge 1 commit intoodoo:saas-19.1from
odoo-dev:saas-19.1-saas-18.2-replace-regex-with-ast-vava-512593-fw
Open

[FIX] test_generic: improve test using ast instead of regex#1926
fw-bot wants to merge 1 commit intoodoo:saas-19.1from
odoo-dev:saas-19.1-saas-18.2-replace-regex-with-ast-vava-512593-fw

Conversation

@fw-bot
Copy link
Copy Markdown

@fw-bot fw-bot commented Mar 27, 2026

There is a test ensuring that there is no use of search([...]).id
without adding a limit=1 (or using .ids). This test was relying on a
complicated regex. This commit improves the test by relying on ast and
corrects remaining occurrences that were not raised by previous version
of the test.

opw-6037120

Forward-Port-Of: #1919
Forward-Port-Of: #1894

There is a test ensuring that there is no use of `search([...]).id`
without adding a `limit=1` (or using .ids). This test was relying on a
complicated regex. This commit improves the test by relying on `ast` and
corrects remaining occurrences that were not raised by previous version
of the test.

X-original-commit: b9832f6
@robodoo
Copy link
Copy Markdown
Collaborator

robodoo commented Mar 27, 2026

Pull request status dashboard

@fw-bot
Copy link
Copy Markdown
Author

fw-bot commented Mar 27, 2026

This PR targets saas-19.1 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

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