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 Mar 12, 2024
1 parent fbad9ff commit 2803a06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 18 deletions.
18 changes: 6 additions & 12 deletions src/pytest_rich/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,21 +101,17 @@ def pytest_sessionstart(self, session: pytest.Session) -> None:

self.console.print(header)

def pytest_internalerror(self, excrepr: ExceptionRepr) -> None:
...
def pytest_internalerror(self, excrepr: ExceptionRepr) -> None: ...

def pytest_warning_recorded(
self,
warning_message: warnings.WarningMessage,
nodeid: str,
) -> None:
...
) -> None: ...

def pytest_deselected(self, items: Sequence[pytest.Item]) -> None:
...
def pytest_deselected(self, items: Sequence[pytest.Item]) -> None: ...

def pytest_plugin_registered(self, plugin) -> None:
...
def pytest_plugin_registered(self, plugin) -> None: ...

def pytest_runtest_logstart(
self, nodeid: str, location: Tuple[str, Optional[int], str]
Expand Down Expand Up @@ -301,11 +297,9 @@ def print_summary(self, error_messages):

def pytest_keyboard_interrupt(
self, excinfo: pytest.ExceptionInfo[BaseException]
) -> None:
...
) -> None: ...

def pytest_unconfigure(self) -> None:
...
def pytest_unconfigure(self) -> None: ...

@property
def verbose(self) -> bool:
Expand Down
9 changes: 3 additions & 6 deletions tests/example/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,15 @@ def test_teardown_error(teardown_error_fixture):


@pytest.mark.skip
def test_skip_no_reason():
...
def test_skip_no_reason(): ...


@pytest.mark.skip(reason="skipped")
def test_skip():
...
def test_skip(): ...


@pytest.mark.skip("skipped")
def test_skip_no_keyword():
...
def test_skip_no_keyword(): ...


def test_inline_skip():
Expand Down

0 comments on commit 2803a06

Please sign in to comment.