[pre-commit.ci] pre-commit autoupdate (#755)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8fcf927c44
commit
290b322a5d
@@ -1,6 +1,6 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 21.12b0
|
rev: 22.1.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args: [--safe, --quiet, --target-version, py35]
|
args: [--safe, --quiet, --target-version, py35]
|
||||||
|
|||||||
@@ -1244,22 +1244,14 @@ class TestFileScope:
|
|||||||
"test_b.py::TestB", result.outlines
|
"test_b.py::TestB", result.outlines
|
||||||
)
|
)
|
||||||
|
|
||||||
assert (
|
assert test_a_workers_and_test_count in (
|
||||||
test_a_workers_and_test_count
|
{"gw0": 10},
|
||||||
in (
|
{"gw1": 0},
|
||||||
{"gw0": 10},
|
) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
|
||||||
{"gw1": 0},
|
assert test_b_workers_and_test_count in (
|
||||||
)
|
{"gw0": 10},
|
||||||
or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
|
{"gw1": 0},
|
||||||
)
|
) or test_b_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:
|
def test_by_class(self, pytester: pytest.Pytester) -> None:
|
||||||
pytester.makepyfile(
|
pytester.makepyfile(
|
||||||
@@ -1284,22 +1276,14 @@ class TestFileScope:
|
|||||||
"test_a.py::TestB", result.outlines
|
"test_a.py::TestB", result.outlines
|
||||||
)
|
)
|
||||||
|
|
||||||
assert (
|
assert test_a_workers_and_test_count in (
|
||||||
test_a_workers_and_test_count
|
{"gw0": 10},
|
||||||
in (
|
{"gw1": 0},
|
||||||
{"gw0": 10},
|
) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
|
||||||
{"gw1": 0},
|
assert test_b_workers_and_test_count in (
|
||||||
)
|
{"gw0": 10},
|
||||||
or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
|
{"gw1": 0},
|
||||||
)
|
) or test_b_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:
|
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)."""
|
"""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
|
"test_b.py::TestA", result.outlines
|
||||||
)
|
)
|
||||||
|
|
||||||
assert (
|
assert test_a_workers_and_test_count in (
|
||||||
test_a_workers_and_test_count
|
{"gw0": 5},
|
||||||
in (
|
{"gw1": 0},
|
||||||
{"gw0": 5},
|
) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 5})
|
||||||
{"gw1": 0},
|
assert test_b_workers_and_test_count in (
|
||||||
)
|
{"gw0": 5},
|
||||||
or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 5})
|
{"gw1": 0},
|
||||||
)
|
) or test_b_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 (
|
assert (
|
||||||
test_a_workers_and_test_count.items()
|
test_a_workers_and_test_count.items()
|
||||||
== test_b_workers_and_test_count.items()
|
== test_b_workers_and_test_count.items()
|
||||||
@@ -1391,22 +1367,14 @@ class TestGroupScope:
|
|||||||
"test_a.py::TestB", result.outlines
|
"test_a.py::TestB", result.outlines
|
||||||
)
|
)
|
||||||
|
|
||||||
assert (
|
assert test_a_workers_and_test_count in (
|
||||||
test_a_workers_and_test_count
|
{"gw0": 10},
|
||||||
in (
|
{"gw1": 0},
|
||||||
{"gw0": 10},
|
) or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
|
||||||
{"gw1": 0},
|
assert test_b_workers_and_test_count in (
|
||||||
)
|
{"gw0": 10},
|
||||||
or test_a_workers_and_test_count in ({"gw0": 0}, {"gw1": 10})
|
{"gw1": 0},
|
||||||
)
|
) or test_b_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 (
|
assert (
|
||||||
test_a_workers_and_test_count.items()
|
test_a_workers_and_test_count.items()
|
||||||
== test_b_workers_and_test_count.items()
|
== test_b_workers_and_test_count.items()
|
||||||
|
|||||||
Reference in New Issue
Block a user