Skip to content

Commit

Permalink
Use stdout for printing targets output
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelAquilina committed Sep 30, 2017
1 parent 82be56c commit 299d6f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion s4/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def targets_command(args, config, logger):

for name in sorted(config['targets']):
entry = config['targets'][name]
logger.info('%s: [%s <=> %s]', name, entry['local_folder'], entry['s3_uri'])
print('%s: [%s <=> %s]', name, entry['local_folder'], entry['s3_uri'])


def add_command(args, config, logger):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -718,8 +718,8 @@ def test_correct_output(self, capsys):
cli.targets_command(None, config, create_logger())

out, err = capsys.readouterr()
assert out == ''
assert err == (
assert err == ''
assert out == (
'Personal: [/home/user/Documents <=> s3://mybackup/Personal]\n'
'Studies: [/media/backup/Studies <=> s3://something/something/Studies]\n'
)
Expand Down

0 comments on commit 299d6f6

Please sign in to comment.