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

[16.0] partner_duns: DeprecationWarning when running tests #1951

Open
bouktaibMohssin opened this issue Jan 8, 2025 · 0 comments
Open

[16.0] partner_duns: DeprecationWarning when running tests #1951

bouktaibMohssin opened this issue Jan 8, 2025 · 0 comments
Labels

Comments

@bouktaibMohssin
Copy link

bouktaibMohssin commented Jan 8, 2025

Module

partner_duns

Describe the bug

The partner_duns module is using the deprecated SavepointCase class for tests, which has been merged into TransactionCase in Odoo 16.0. This causes a DeprecationWarning to appear when running tests.

To Reproduce

Affected versions:
Odoo 16.0

Steps to reproduce the behavior:

  1. Run tests in the partner_duns module on Odoo 16.0 using OCA CI.
  2. Observe the following deprecation warning:
    DeprecationWarning: Deprecated class SavepointCase has been merged into TransactionCase

image

Expected behavior
The test should not trigger any deprecation warnings and should use the current TransactionCase class.

Additional context

class TestPartnerDuns(SavepointCase):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant