diff --git a/pytest_order/plugin.py b/pytest_order/plugin.py index 0be654d..ccf5240 100644 --- a/pytest_order/plugin.py +++ b/pytest_order/plugin.py @@ -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 = ( @@ -88,8 +88,7 @@ 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( @@ -97,8 +96,7 @@ def pytest_addoption(parser: Parser) -> None: 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( diff --git a/tests/test_relative_ordering.py b/tests/test_relative_ordering.py index 095ca39..ecc1c5e 100644 --- a/tests/test_relative_ordering.py +++ b/tests/test_relative_ordering.py @@ -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 @@ -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 @@ -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