[18.0][FIX] queue_job: prevent conflict w/ TestOverrides:test_creates#727
[18.0][FIX] queue_job: prevent conflict w/ TestOverrides:test_creates#727Kimkhoi3010 wants to merge 1 commit intoOCA:18.0from
Conversation
|
Hi @guewen, |
StefanRijnhart
left a comment
There was a problem hiding this comment.
It's inevitable that not all post-install tests from core Odoo run successfully on a database with additional modules involved. If this causes issues in your setup, I would recommend to only run the tests of your custom modules (or, custom + OCA modules).
|
Proposal: use https://github.com/odoo/odoo/blob/18.0/odoo/api.py#L446 and get rid of the sentinel. |
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@StefanRijnhart As another fool that has been tilting at the core Odoo test windmill for several years now, I agree that some failures are inevitable, but still find a lot of value in running the majority of the tests and only excluding (i.e. |
Issue:
The native test TestOverrides:test_creates() fails when queue_job is installed due to a security check that prevents the creation of queue.job records via RPC (see queue_job.py#L234). This results in an exception:
Solution: