Skip to content

Commit f16be5e

Browse files
pre-commit-ci[bot]mrbean-bremen
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b10a949 commit f16be5e

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

pytest_order/plugin.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def pytest_configure(config: Config) -> None:
1717
"""
1818

1919
provided_by_pytest_order = (
20-
"Provided by pytest-order. " "See also: https://pytest-order.readthedocs.io/"
20+
"Provided by pytest-order. See also: https://pytest-order.readthedocs.io/"
2121
)
2222

2323
config_line = (
@@ -88,17 +88,15 @@ def pytest_addoption(parser: Parser) -> None:
8888
action="store_true",
8989
dest="sparse_ordering",
9090
help=(
91-
"If there are gaps between ordinals, they are filled "
92-
"with unordered tests."
91+
"If there are gaps between ordinals, they are filled with unordered tests."
9392
),
9493
)
9594
group.addoption(
9695
"--order-dependencies",
9796
action="store_true",
9897
dest="order_dependencies",
9998
help=(
100-
"If set, dependencies added by pytest-dependency will be ordered "
101-
"if needed."
99+
"If set, dependencies added by pytest-dependency will be ordered if needed."
102100
),
103101
)
104102
group.addoption(

tests/test_relative_ordering.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ def test_3():
414414
assert item_names_for(test_content) == ["test_1", "test_2", "test_3"]
415415
out, err = capsys.readouterr()
416416
warning = (
417-
"cannot execute 'test_2' relative to others: 'test_4' " "- ignoring the marker"
417+
"cannot execute 'test_2' relative to others: 'test_4' - ignoring the marker"
418418
)
419419
assert warning in out
420420

@@ -471,7 +471,7 @@ def test_3(self):
471471
]
472472
out, err = capsys.readouterr()
473473
warning = (
474-
"cannot execute 'test_2' relative to others: 'test_4' " "- ignoring the marker"
474+
"cannot execute 'test_2' relative to others: 'test_4' - ignoring the marker"
475475
)
476476
assert warning in out
477477

@@ -494,9 +494,7 @@ def test_3():
494494
"""
495495
assert item_names_for(test_content) == ["test_2", "test_1", "test_3"]
496496
out, err = capsys.readouterr()
497-
warning = (
498-
"cannot execute test relative to others: " "test_dependency_loop.py::test_3"
499-
)
497+
warning = "cannot execute test relative to others: test_dependency_loop.py::test_3"
500498
assert warning in out
501499

502500

0 commit comments

Comments
 (0)