Skip to content

Commit

Permalink
return empty strnig in mock_run_command_side_effect
Browse files Browse the repository at this point in the history
Signed-off-by: Stepan Blyshchak <[email protected]>
  • Loading branch information
stepanblyschak committed Jan 29, 2021
1 parent 557bba3 commit 7905df7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/config_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
def mock_run_command_side_effect(*args, **kwargs):
command = args[0]

if 'display_cmd' in kwargs and kwargs['display_cmd'] == True:
if kwargs.get('display_cmd'):
click.echo(click.style("Running command: ", fg='cyan') + click.style(command, fg='green'))

if kwargs.get('return_cmd'):
return ''


class TestLoadMinigraph(object):
@classmethod
Expand Down

0 comments on commit 7905df7

Please sign in to comment.