mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
22a127191d
commit
60c3b59552
2 changed files with 17 additions and 23 deletions
|
|
@ -353,16 +353,13 @@ def test_ident_conflict(tmpdir, runner):
|
||||||
'error: foobar: Storage "foo" contains multiple items with the '
|
'error: foobar: Storage "foo" contains multiple items with the '
|
||||||
"same UID or even content"
|
"same UID or even content"
|
||||||
) in result.output
|
) in result.output
|
||||||
assert (
|
assert sorted(
|
||||||
sorted(
|
[
|
||||||
[
|
"one.txt" in result.output,
|
||||||
"one.txt" in result.output,
|
"two.txt" in result.output,
|
||||||
"two.txt" in result.output,
|
"three.txt" in result.output,
|
||||||
"three.txt" in result.output,
|
]
|
||||||
]
|
) == [False, True, True]
|
||||||
)
|
|
||||||
== [False, True, True]
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|
|
||||||
|
|
@ -155,18 +155,15 @@ async def test_expand_collections(shortcuts, expected):
|
||||||
async def handle_not_found(config, collection):
|
async def handle_not_found(config, collection):
|
||||||
return missing
|
return missing
|
||||||
|
|
||||||
assert (
|
assert sorted(
|
||||||
sorted(
|
await aiostream.stream.list(
|
||||||
await aiostream.stream.list(
|
expand_collections(
|
||||||
expand_collections(
|
shortcuts,
|
||||||
shortcuts,
|
config_a,
|
||||||
config_a,
|
config_b,
|
||||||
config_b,
|
get_discovered_a,
|
||||||
get_discovered_a,
|
get_discovered_b,
|
||||||
get_discovered_b,
|
handle_not_found,
|
||||||
handle_not_found,
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
== sorted(expected)
|
) == sorted(expected)
|
||||||
)
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue