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

Fix StrictMock attribute's attribute access. #71

Closed
fornellas opened this issue Nov 7, 2019 · 0 comments · Fixed by #72
Closed

Fix StrictMock attribute's attribute access. #71

fornellas opened this issue Nov 7, 2019 · 0 comments · Fixed by #72
Assignees
Labels
bug Something isn't working
Milestone

Comments

@fornellas
Copy link
Contributor

This should work:

from testslide import StrictMock
from unittest.mock import Mock
mock = StrictMock(template=Template)
mock.whatever = Mock()
mock.whatever(1)
mock.whatever.assert_called_once_with(1)
@fornellas fornellas added the bug Something isn't working label Nov 7, 2019
@fornellas fornellas added this to the Async support milestone Nov 7, 2019
@fornellas fornellas self-assigned this Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant