From 60c3b595526870708ff88062f49218496504617d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Mar 2022 22:41:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/system/cli/test_sync.py | 17 +++++++---------- tests/unit/cli/test_discover.py | 23 ++++++++++------------- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/tests/system/cli/test_sync.py b/tests/system/cli/test_sync.py index b89f79c..d69b4c2 100644 --- a/tests/system/cli/test_sync.py +++ b/tests/system/cli/test_sync.py @@ -353,16 +353,13 @@ def test_ident_conflict(tmpdir, runner): 'error: foobar: Storage "foo" contains multiple items with the ' "same UID or even content" ) in result.output - assert ( - sorted( - [ - "one.txt" in result.output, - "two.txt" in result.output, - "three.txt" in result.output, - ] - ) - == [False, True, True] - ) + assert sorted( + [ + "one.txt" in result.output, + "two.txt" in result.output, + "three.txt" in result.output, + ] + ) == [False, True, True] @pytest.mark.parametrize( diff --git a/tests/unit/cli/test_discover.py b/tests/unit/cli/test_discover.py index 393e20a..4c24a38 100644 --- a/tests/unit/cli/test_discover.py +++ b/tests/unit/cli/test_discover.py @@ -155,18 +155,15 @@ async def test_expand_collections(shortcuts, expected): async def handle_not_found(config, collection): return missing - assert ( - sorted( - await aiostream.stream.list( - expand_collections( - shortcuts, - config_a, - config_b, - get_discovered_a, - get_discovered_b, - handle_not_found, - ) + assert sorted( + await aiostream.stream.list( + expand_collections( + shortcuts, + config_a, + config_b, + get_discovered_a, + get_discovered_b, + handle_not_found, ) ) - == sorted(expected) - ) + ) == sorted(expected)