Skip to content

Commit 60c3b59

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 22a1271 commit 60c3b59

File tree

2 files changed

+17
-23
lines changed

2 files changed

+17
-23
lines changed

tests/system/cli/test_sync.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -353,16 +353,13 @@ def test_ident_conflict(tmpdir, runner):
353353
'error: foobar: Storage "foo" contains multiple items with the '
354354
"same UID or even content"
355355
) in result.output
356-
assert (
357-
sorted(
358-
[
359-
"one.txt" in result.output,
360-
"two.txt" in result.output,
361-
"three.txt" in result.output,
362-
]
363-
)
364-
== [False, True, True]
365-
)
356+
assert sorted(
357+
[
358+
"one.txt" in result.output,
359+
"two.txt" in result.output,
360+
"three.txt" in result.output,
361+
]
362+
) == [False, True, True]
366363

367364

368365
@pytest.mark.parametrize(

tests/unit/cli/test_discover.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,15 @@ async def get_discovered_b():
155155
async def handle_not_found(config, collection):
156156
return missing
157157

158-
assert (
159-
sorted(
160-
await aiostream.stream.list(
161-
expand_collections(
162-
shortcuts,
163-
config_a,
164-
config_b,
165-
get_discovered_a,
166-
get_discovered_b,
167-
handle_not_found,
168-
)
158+
assert sorted(
159+
await aiostream.stream.list(
160+
expand_collections(
161+
shortcuts,
162+
config_a,
163+
config_b,
164+
get_discovered_a,
165+
get_discovered_b,
166+
handle_not_found,
169167
)
170168
)
171-
== sorted(expected)
172-
)
169+
) == sorted(expected)

0 commit comments

Comments
 (0)