You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although this works right now, it is highly undesirable, as this undocumented usage pattern blocks implementation of #3, which can allow unexpected calls to fail on the spot, not after the test finishes.
Let's make mock_callable / mock_constructor fail if it is attempted to receive extra configuration, after it received the first call, which should prevent and educate users on this.
The text was updated successfully, but these errors were encountered:
By design, mock_callable() should be used like this:
But sometimes people misuse it like:
Although this works right now, it is highly undesirable, as this undocumented usage pattern blocks implementation of #3, which can allow unexpected calls to fail on the spot, not after the test finishes.
Let's make mock_callable / mock_constructor fail if it is attempted to receive extra configuration, after it received the first call, which should prevent and educate users on this.
The text was updated successfully, but these errors were encountered: