Skip to content

Commit

Permalink
(robot_skills) reduce statement to one line
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed Feb 13, 2021
1 parent 29d9071 commit e64ee2b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions robot_skills/src/robot_skills/mockbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ def assert_any_call(self, *args, **kwargs):
if not any([self.equal_or_more_arguments(expected, c) for c in actual]):
cause = expected if isinstance(expected, Exception) else None
expected_string = self._format_mock_call_signature(args, kwargs)
six.raise_from(AssertionError(
'%s call not found' % expected_string
), cause)
six.raise_from(AssertionError("'%s' call not found" % expected_string), cause)

@staticmethod
def equal_or_more_arguments(expected, actual):
Expand Down

0 comments on commit e64ee2b

Please sign in to comment.