Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 13, 2025
1 parent 8590f86 commit e19ac83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions pytest_order/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def pytest_configure(config: Config) -> None:
"""

provided_by_pytest_order = (
"Provided by pytest-order. " "See also: https://pytest-order.readthedocs.io/"
"Provided by pytest-order. See also: https://pytest-order.readthedocs.io/"
)

config_line = (
Expand Down Expand Up @@ -88,17 +88,15 @@ def pytest_addoption(parser: Parser) -> None:
action="store_true",
dest="sparse_ordering",
help=(
"If there are gaps between ordinals, they are filled "
"with unordered tests."
"If there are gaps between ordinals, they are filled with unordered tests."
),
)
group.addoption(
"--order-dependencies",
action="store_true",
dest="order_dependencies",
help=(
"If set, dependencies added by pytest-dependency will be ordered "
"if needed."
"If set, dependencies added by pytest-dependency will be ordered if needed."
),
)
group.addoption(
Expand Down
8 changes: 3 additions & 5 deletions tests/test_relative_ordering.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def test_3():
assert item_names_for(test_content) == ["test_1", "test_2", "test_3"]
out, err = capsys.readouterr()
warning = (
"cannot execute 'test_2' relative to others: 'test_4' " "- ignoring the marker"
"cannot execute 'test_2' relative to others: 'test_4' - ignoring the marker"
)
assert warning in out

Expand Down Expand Up @@ -471,7 +471,7 @@ def test_3(self):
]
out, err = capsys.readouterr()
warning = (
"cannot execute 'test_2' relative to others: 'test_4' " "- ignoring the marker"
"cannot execute 'test_2' relative to others: 'test_4' - ignoring the marker"
)
assert warning in out

Expand All @@ -494,9 +494,7 @@ def test_3():
"""
assert item_names_for(test_content) == ["test_2", "test_1", "test_3"]
out, err = capsys.readouterr()
warning = (
"cannot execute test relative to others: " "test_dependency_loop.py::test_3"
)
warning = "cannot execute test relative to others: test_dependency_loop.py::test_3"
assert warning in out


Expand Down

0 comments on commit e19ac83

Please sign in to comment.