[FIX] server_environment: prevent import errors for test classes - #300
Merged
Conversation
Test suites in other repositories are failing when they don't rely already on odoo-test-helper. Example:
File /__w/edi/edi/account_invoice_export_server_env/tests/__init__.py, line 1, in <module>
from . import test_transmit_method
File /__w/edi/edi/account_invoice_export_server_env/tests/test_transmit_method.py, line 8, in <module>
from odoo.addons.server_environment.tests.common import ServerEnvironmentCase
File /opt/odoo-venv/lib/python3.10/site-packages/odoo/addons/server_environment/tests/__init__.py, line 3, in <module>
from . import test_preserve_not_env_managed_data
File /opt/odoo-venv/lib/python3.10/site-packages/odoo/addons/server_environment/tests/test_preserve_not_env_managed_data.py, line 4, in <module>
from odoo_test_helper import FakeModelLoader
ModuleNotFoundError: No module named 'odoo_test_helper'
Contributor
Author
|
/ocabot merge patch |
Contributor
|
Hey, thanks for contributing! Proceeding to merge this for you. |
Contributor
|
Congratulations, your PR was merged at 024e309. Thanks a lot for contributing to OCA. ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test suites in other repositories are failing when they don't rely already on odoo-test-helper. Example:
File /__w/edi/edi/account_invoice_export_server_env/tests/init.py, line 1, in
from . import test_transmit_method
File /__w/edi/edi/account_invoice_export_server_env/tests/test_transmit_method.py, line 8, in
from odoo.addons.server_environment.tests.common import ServerEnvironmentCase
File /opt/odoo-venv/lib/python3.10/site-packages/odoo/addons/server_environment/tests/init.py, line 3, in
from . import test_preserve_not_env_managed_data
File /opt/odoo-venv/lib/python3.10/site-packages/odoo/addons/server_environment/tests/test_preserve_not_env_managed_data.py, line 4, in
from odoo_test_helper import FakeModelLoader
ModuleNotFoundError: No module named 'odoo_test_helper'
Backport of #298