-
Notifications
You must be signed in to change notification settings - Fork 189
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
Notifications api #847
Notifications api #847
Conversation
* ADR update neo-technology/drivers-adr#56 * Split filtering into two config options * Simplified driver by removing requirement for protocol optimizations * Slightly adjusted protocol specs * Finalized documentation
Methods forwarded to the wrapped socket need to live on the wrapper object, not the class.
Methods forwarded to the wrapped socket need to altered on the wrapper object, not the class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The behaviour of the property category
of the ResultSummary is wrong, it should be UNKNOWN
when the category is not present in the metadata.
@@ -223,6 +223,7 @@ def apply_unasync(files): | |||
"assert_awaited_once": "assert_called_once", | |||
"assert_awaited_once_with": "assert_called_once_with", | |||
"await_count": "call_count", | |||
"AsyncMock": "MagicMock", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did MagicMock come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the mocking library has Mock
and MagicMock
which behave the same except that the latter also mock magic methods (__xyz__
shaped methods). AsyncMock
does always mock magic methods as well (I suppose it has to, to be able to intercept calls to __await__
, but that is speculation). Either way, by default the unasync script would turn AsyncMock
into Mock
which brakes tests that rely on magic methods being mocked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔢
Depends on