mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
parent
a1532f36f6
commit
66c6f31c8b
1 changed files with 0 additions and 21 deletions
|
|
@ -131,27 +131,6 @@ def test_verbosity(tmpdir, runner):
|
||||||
assert 'invalid value for "--verbosity"' in result.output.lower()
|
assert 'invalid value for "--verbosity"' in result.output.lower()
|
||||||
|
|
||||||
|
|
||||||
def test_deprecated_item_status(tmpdir):
|
|
||||||
f = tmpdir.join('mypair.items')
|
|
||||||
f.write(dedent('''
|
|
||||||
["ident", ["href_a", "etag_a", "href_b", "etag_b"]]
|
|
||||||
["ident_two", ["href_a", "etag_a", "href_b", "etag_b"]]
|
|
||||||
''').strip())
|
|
||||||
|
|
||||||
data = {
|
|
||||||
'ident': ['href_a', 'etag_a', 'href_b', 'etag_b'],
|
|
||||||
'ident_two': ['href_a', 'etag_a', 'href_b', 'etag_b']
|
|
||||||
}
|
|
||||||
|
|
||||||
assert cli.utils.load_status(
|
|
||||||
str(tmpdir), 'mypair', data_type='items') == data
|
|
||||||
|
|
||||||
cli.utils.save_status(
|
|
||||||
str(tmpdir), 'mypair', data_type='items', data=data)
|
|
||||||
assert cli.utils.load_status(
|
|
||||||
str(tmpdir), 'mypair', data_type='items') == data
|
|
||||||
|
|
||||||
|
|
||||||
def test_collections_cache_invalidation(tmpdir, runner):
|
def test_collections_cache_invalidation(tmpdir, runner):
|
||||||
foo = tmpdir.mkdir('foo')
|
foo = tmpdir.mkdir('foo')
|
||||||
bar = tmpdir.mkdir('bar')
|
bar = tmpdir.mkdir('bar')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue