Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0][OU-ADD] enable tests, add decorator to make them convenient to use #4669

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

hbrunn
Copy link
Member

@hbrunn hbrunn commented Nov 18, 2024

the decorator is used in the account migration.

I made this a decorator so that it doesn't interfere with the tests' metaclass.

@OCA-git-bot
Copy link
Contributor

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

@hbrunn hbrunn added this to the 17.0 milestone Nov 18, 2024
if test -n "$(ls openupgrade/openupgrade_scripts/scripts/*/*/tests/data*.py 2> /dev/null)"; then
for snippet in openupgrade/openupgrade_scripts/scripts/*/*/tests/data*.py; do
if test -n "$(ls openupgrade/openupgrade_scripts/scripts/*/tests/data*.py 2> /dev/null)"; then
for snippet in openupgrade/openupgrade_scripts/scripts/*/tests/data*.py; do
Copy link
Member Author

Choose a reason for hiding this comment

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

this is because tests must live in the base directory of the addon's path

@@ -131,14 +131,16 @@ jobs:
echo Execution of Openupgrade with the update of the following modules : $MODULES_NEW
# Silence redundant logs from unlinking records (1 line is enough)
# to prevent log overflow
OPENUPGRADE_TESTS=1 $ODOO \
$ODOO \
Copy link
Member Author

Choose a reason for hiding this comment

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

the env var was a leftover from the pre-openupgrade_framework test mechanism

@pedrobaeza pedrobaeza changed the title [OU-ADD] enable tests, add decorator to make them convenient to use [17.0][OU-ADD] enable tests, add decorator to make them convenient to use Nov 18, 2024
@pedrobaeza pedrobaeza merged commit c5732d6 into OCA:17.0 Nov 18, 2024
2 checks passed
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