Skip to content

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

# 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
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