Cosmetic improvements

This commit is contained in:
Markus Unterwaditzer 2016-06-16 02:24:39 +02:00
parent 8c1ae4f099
commit 403a683e70
3 changed files with 3 additions and 3 deletions

View file

@ -234,7 +234,7 @@ def test_invalid_pairs_as_cli_arg(tmpdir, runner):
result = runner.invoke(['sync', 'foobar/d'])
assert result.exception
assert 'pair foobar: collection d not found' in result.output.lower()
assert 'pair foobar: collection "d" not found' in result.output.lower()
def test_multiple_pairs(tmpdir, runner):

View file

@ -33,7 +33,7 @@ def prepare_pair(wq, pair_name, collections, config, callback, **kwargs):
'Pair {}: Collection {} not found. These are the '
'configured collections:\n{}'
.format(pair_name,
coerce_native(collection_name),
json.dumps(collection_name),
list(all_collections)))
new_workers += 1

View file

@ -271,7 +271,7 @@ def _handle_collection_not_found(config, collection, e=None):
cli_logger.error('{}No collection {} found for storage {}.'
.format('{}\n'.format(e) if e else '',
coerce_native(collection), storage_name))
json.dumps(collection), storage_name))
if click.confirm('Should vdirsyncer attempt to create it?'):
storage_type = config['type']