Comments (4)
In version 9.0 I wrote this, which transforms a job in a synchronous function: https://github.com/OCA/connector/blob/caee9b08818f550d18bf0193e21ae3abb3d3c632/connector/tests/common.py#L28-L64
The API has changed so it won't work as is, but a similar idea could be applied.
Now generally I prefer to split the tests in different units:
- one test will replace the job by a mock and test that it's called with the arguments we need
- one different test will directly call the job method (synchronously) and check the result
from queue.
This one should please you #111
from queue.
better this one #114 I should get back to #111 actually ๐
from queue.
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
from queue.
Related Issues (20)
- [V16-queue_job] Problems with multiple databases
- Disable queue_job in staging env HOT 2
- Question: Is it possible to modify an existing queue.job chain? HOT 2
- The job runner does not understand cancelled jobs HOT 7
- Controller method fails HOT 8
- why run with with_delay can not get the new fieldใใใใ๏ผ๏ผ๏ผ๏ผ ValueError: Invalid field 'job_title' on model 'hdjn_oa.employee_ext' HOT 1
- [QUESTION] About channels HOT 1
- Error with PgBouncer HOT 6
- OperationalError, but progress is saved and job is repeated couple more times
- KeyError: 'socket' After install queue.job in odoo 16.0 HOT 9
- [14.0] identity_exact not working w/ chained jobs? HOT 6
- installation not possible in odoo 16 HOT 2
- Since Odoo 15.0 environment.manage is useless warning from migration script in queue_job HOT 2
- Assigning delayable variable to another variable breaks delayable HOT 1
- queue_job_cron_jobrunner for v13 HOT 3
- Cannot install queue_job on odoo 16/windows (OSError: [WinError 10038] An operation was attempted on something that is not a socket) HOT 3
- Migration to version 17.0 HOT 4
- OperationalError: Unable to use a closed cursor HOT 2
- job_record_with_same_identity_key: make states configurable per job HOT 1
- [16.0] queue_job: Autovacuum doesn't clean up sub channels HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from queue.