Skip to content

Commit

Permalink
(robot_skills) don't use custom self
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Feb 13, 2021
1 parent 7de4d5e commit 29d9071
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions robot_skills/src/robot_skills/mockbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ def old_query(spec, choices, timeout=10):


class AlteredMagicMock(mock.MagicMock):
def assert_called_with(_mock_self, *args, **kwargs):
def assert_called_with(self, *args, **kwargs):
"""
Assert that the mock was called with the specified arguments.
Raises an AssertionError if the args and keyword args passed in are
different to the last call to the mock.
"""
self = _mock_self
if self.call_args is None:
expected = self._format_mock_call_signature(args, kwargs)
raise AssertionError('Expected call: %s\nNot called' % (expected,))
Expand Down

0 comments on commit 29d9071

Please sign in to comment.