queue icon indicating copy to clipboard operation
queue copied to clipboard

The latest test change breaks tests on Odoo.sh

Open ventor-dev opened this issue 1 year ago • 2 comments

Module

Queue Job (queue_job)

Describe the bug

This commit leads to the errors with tests on Odoo.sh (check the screenshot below):

image

image

Looks like this can be easily fixed by removing doctests from this method (or at least removing new line added).

To Reproduce

Affected versions: 15.0.2.5.5, 16.0.2.5.5

Steps to reproduce the behavior:

  1. Create new project on Odoo.sh
  2. Add queue_job module
  3. Wait until tests will be finished

Expected behavior No errors in tests

ventor-dev avatar Dec 14 '23 09:12 ventor-dev

Prepared two PRs with hotfix for this issue. I suggest removing this doctest because it makes no sense (at least for me it is not obvious why there should be database with name "odoo" as result of this code).

I am willing to refactor this test case if needed but need more details about what we want to check while testing?

AlexanderPashuk avatar Dec 14 '23 15:12 AlexanderPashuk

Hi all,

Prepared the same PR for 17.0 branch: https://github.com/OCA/queue/issues/608

@gurneyalex could you please merge them? They are the same as were done for 15.0 / 16.0

Thanks!

AlexanderPashuk avatar Mar 13 '24 12:03 AlexanderPashuk