8000 Add 'mock_job_delay_to_direct' to ease tests on jobs by guewen · Pull Request #123 · OCA/connector · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add 'mock_job_delay_to_direct' to ease tests on jobs #123

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

Merged
merged 1 commit into from
Oct 23, 2015

Conversation

guewen
Copy link
Member
@guewen guewen commented Oct 1, 2015

This context manager allows to execute a job function synchronously when it
should normally have been delayed in a asynchronous job.

This is really useful for writing tests that check the flow of a
synchronisation without having to deal with the jobs execution mechanisms.

It is used in the OCA/connector-magento project and ought to be used by other
projects.

@guewen guewen force-pushed the connector-add-mock_job_delay_to_direct branch from daa6b6b to 615b727 Compare October 1, 2015 18:38
@guewen guewen changed the title Add 'mock_job_delay_to_direct' for tests purposes Add 'mock_job_delay_to_direct' to ease tests on jobs Oct 1, 2015
@guewen guewen force-pushed the connector-add-mock_job_delay_to_direct branch from 615b727 to 931d936 Compare October 1, 2015 19:26
@lmignon
Copy link
Contributor
lmignon commented Oct 1, 2015

👍 now I must clean my tests ☺

@guewen guewen force-pushed the connector-add-mock_job_delay_to_direct branch 2 times, most recently from 6390554 to 77f6b4a Compare October 2, 2015 06:35
@laetitia-gangloff
Copy link

👍 nice !

@lmignon
Copy link
Contributor
lmignon commented Oct 23, 2015

@guewen Can you rebase?

This context manager allows to execute a job function synchronously when it
should normally have been delayed in a asynchronous job.

This is really useful for writing tests that check the flow of a
synchronisation without having to deal with the jobs execution mechanisms.

It is used in the OCA/connector-magento project and ought to be used by other
projects.
@guewen guewen force-pushed the connector-add-mock_job_delay_to_direct branch from 77f6b4a to decde3d Compare October 23, 2015 08:29
@guewen
Copy link
Member Author
guewen commented Oct 23, 2015

Done

On Fri, Oct 23, 2015 at 8:39 AM, Laurent Mignon (ACSONE) <
notifications@github.com> wrote:

@guewen https://github.com/guewen Can you rebase?


Reply to this email directly or view it on GitHub
#123 (comment).

@lmignon
Copy link
Contributor
lmignon commented Oct 23, 2015

Thank you @guewen. The PR will be merged once travis will be green.

lmignon added a commit that referenced this pull request Oct 23, 2015
…irect

Add 'mock_job_delay_to_direct' to ease tests on jobs
@lmignon lmignon merged commit 7a277b5 into OCA:8.0 Oct 23, 2015
@guewen
Copy link
Member Author
guewen commented Oct 23, 2015

Thanks

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

Successfully merging this pull request may close these issues.

3 participants
0