Skip to content

make @patch with create_autospec mock coroutines correctly - #74

Merged
Martiusweb merged 3 commits into
masterfrom
patch_autospec
Feb 27, 2018
Merged

make @patch with create_autospec mock coroutines correctly#74
Martiusweb merged 3 commits into
masterfrom
patch_autospec

Conversation

@Martiusweb

Copy link
Copy Markdown
Owner

We need to override asynctest.mock.patch to ensure it uses our version of create_autospec, which supports coroutines (fix of #46).

I'm not yet sure everything works as expected so I'll probably review it and add some tests later (for patch.object, patch.dict, etc).

@Martiusweb
Martiusweb merged commit 0a3c50c into master Feb 27, 2018
@Martiusweb
Martiusweb deleted the patch_autospec branch February 27, 2018 19:45
@Martiusweb Martiusweb mentioned this pull request Feb 27, 2018
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.

1 participant