Skip to content

Commit

Permalink
Testing: Make "FakeTransport" class more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardomurri committed Oct 3, 2017
1 parent 47e262e commit f2893cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gc3libs/backends/tests/faketransport.py
Expand Up @@ -93,7 +93,9 @@ def execute_command(self, cmdline):
for match in self._COMMAND_RE.finditer(cmdline):
cmd = match.group("cmd")
if cmd in self.expected_answer:
return self.expected_answer[cmd]
reply = self.expected_answer[cmd]
log.debug("returning programmed reply for '%s': %s", cmd, reply)
return reply

# if everything else failed, do run the command-line ...
return LocalTransport.execute_command(self, cmdline)
Expand Down

0 comments on commit f2893cb

Please sign in to comment.