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
Positional arguments displayed incorrectly in error messages. Just a cosmetic bug and nothing critical.
Reproducing code:
fromflexmockimportflexmockclassFoo:
defmethod1(self, a, **kwargs):
passfoo=Foo()
flexmock(foo).should_receive("method1").with_args(1, arg3=3, arg2=2)
foo.method1(arg2=2, arg3=3)
Should display error message:
flexmock.exceptions.MethodSignatureError: Arguments for call method1 did not match expectations:
Received call: method1(arg2=2, arg3=3)
Expected call[1]: method1(1, arg3=3, arg2=2)
But has error message:
flexmock.exceptions.MethodSignatureError: Arguments for call method1 did not match expectations:
Received call: method1(arg2=2, arg3=3)
Expected call[1]: method1(arg3=3, arg2=2, a=1)
# ^ positional argument displayed after keyword arguments
The text was updated successfully, but these errors were encountered:
Positional arguments displayed incorrectly in error messages. Just a cosmetic bug and nothing critical.
Reproducing code:
Should display error message:
But has error message:
The text was updated successfully, but these errors were encountered: