-
-
Notifications
You must be signed in to change notification settings - Fork 713
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
Conversation
Hi @legalsylvain, @StefanRijnhart, |
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 |
There was a problem hiding this comment.
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 \ |
There was a problem hiding this comment.
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
the decorator is used in the account migration.
I made this a decorator so that it doesn't interfere with the tests' metaclass.