Skip to content
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

Objects returned from patch functions should have better names #22

Open
blaix opened this issue Dec 20, 2016 · 0 comments
Open

Objects returned from patch functions should have better names #22

blaix opened this issue Dec 20, 2016 · 0 comments

Comments

@blaix
Copy link
Owner

blaix commented Dec 20, 2016

See the patch module added in #19. The default name for the doubles should be the name of the replaced object.

So instead of this:

>>> with patch.stub('path.to.my_function'):
...     my_function
<Stub name='' ...>

it should be this:

>>> with patch.stub('path.to.my_function'):
...     my_function
<Stub name='my_function' ...>

Question: should the name include the full path to the object?

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

No branches or pull requests

1 participant