From 290b322a5d48290397ad698fc1dcb729cbe62e07 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 1 Feb 2022 08:34:13 -0300 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#755) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- testing/acceptance_test.py | 96 +++++++++++++------------------------- 2 files changed, 33 insertions(+), 65 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 223427d..8a35e52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 21.12b0 + rev: 22.1.0 hooks: - id: black args: [--safe, --quiet, --target-version, py35] diff --git a/testing/acceptance_test.py b/testing/acceptance_test.py index 44443d0..3407272 100644 --- a/testing/acceptance_test.py +++ b/testing/acceptance_test.py @@ -1244,22 +1244,14 @@ class TestFileScope: "test_b.py::TestB", result.outlines ) - assert ( - test_a_workers_and_test_count - in ( - {"gw0": 10}, - {"gw1": 0}, - ) - or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) - ) - assert ( - test_b_workers_and_test_count - in ( - {"gw0": 10}, - {"gw1": 0}, - ) - or test_b_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) - ) + assert test_a_workers_and_test_count in ( + {"gw0": 10}, + {"gw1": 0}, + ) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) + assert test_b_workers_and_test_count in ( + {"gw0": 10}, + {"gw1": 0}, + ) or test_b_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) def test_by_class(self, pytester: pytest.Pytester) -> None: pytester.makepyfile( @@ -1284,22 +1276,14 @@ class TestFileScope: "test_a.py::TestB", result.outlines ) - assert ( - test_a_workers_and_test_count - in ( - {"gw0": 10}, - {"gw1": 0}, - ) - or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) - ) - assert ( - test_b_workers_and_test_count - in ( - {"gw0": 10}, - {"gw1": 0}, - ) - or test_b_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) - ) + assert test_a_workers_and_test_count in ( + {"gw0": 10}, + {"gw1": 0}, + ) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) + assert test_b_workers_and_test_count in ( + {"gw0": 10}, + {"gw1": 0}, + ) or test_b_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) def test_module_single_start(self, pytester: pytest.Pytester) -> None: """Fix test suite never finishing in case all workers start with a single test (#277).""" @@ -1346,22 +1330,14 @@ class TestGroupScope: "test_b.py::TestA", result.outlines ) - assert ( - test_a_workers_and_test_count - in ( - {"gw0": 5}, - {"gw1": 0}, - ) - or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 5}) - ) - assert ( - test_b_workers_and_test_count - in ( - {"gw0": 5}, - {"gw1": 0}, - ) - or test_b_workers_and_test_count in ({"gw0": 0}, {"gw1": 5}) - ) + assert test_a_workers_and_test_count in ( + {"gw0": 5}, + {"gw1": 0}, + ) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 5}) + assert test_b_workers_and_test_count in ( + {"gw0": 5}, + {"gw1": 0}, + ) or test_b_workers_and_test_count in ({"gw0": 0}, {"gw1": 5}) assert ( test_a_workers_and_test_count.items() == test_b_workers_and_test_count.items() @@ -1391,22 +1367,14 @@ class TestGroupScope: "test_a.py::TestB", result.outlines ) - assert ( - test_a_workers_and_test_count - in ( - {"gw0": 10}, - {"gw1": 0}, - ) - or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) - ) - assert ( - test_b_workers_and_test_count - in ( - {"gw0": 10}, - {"gw1": 0}, - ) - or test_b_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) - ) + assert test_a_workers_and_test_count in ( + {"gw0": 10}, + {"gw1": 0}, + ) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) + assert test_b_workers_and_test_count in ( + {"gw0": 10}, + {"gw1": 0}, + ) or test_b_workers_and_test_count in ({"gw0": 0}, {"gw1": 10}) assert ( test_a_workers_and_test_count.items() == test_b_workers_and_test_count.items()