mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Cosmetic improvements
This commit is contained in:
parent
8c1ae4f099
commit
403a683e70
3 changed files with 3 additions and 3 deletions
|
|
@ -234,7 +234,7 @@ def test_invalid_pairs_as_cli_arg(tmpdir, runner):
|
||||||
|
|
||||||
result = runner.invoke(['sync', 'foobar/d'])
|
result = runner.invoke(['sync', 'foobar/d'])
|
||||||
assert result.exception
|
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):
|
def test_multiple_pairs(tmpdir, runner):
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ def prepare_pair(wq, pair_name, collections, config, callback, **kwargs):
|
||||||
'Pair {}: Collection {} not found. These are the '
|
'Pair {}: Collection {} not found. These are the '
|
||||||
'configured collections:\n{}'
|
'configured collections:\n{}'
|
||||||
.format(pair_name,
|
.format(pair_name,
|
||||||
coerce_native(collection_name),
|
json.dumps(collection_name),
|
||||||
list(all_collections)))
|
list(all_collections)))
|
||||||
new_workers += 1
|
new_workers += 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ def _handle_collection_not_found(config, collection, e=None):
|
||||||
|
|
||||||
cli_logger.error('{}No collection {} found for storage {}.'
|
cli_logger.error('{}No collection {} found for storage {}.'
|
||||||
.format('{}\n'.format(e) if e else '',
|
.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?'):
|
if click.confirm('Should vdirsyncer attempt to create it?'):
|
||||||
storage_type = config['type']
|
storage_type = config['type']
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue