(
        self,
        config: Config,
        test_results: List[TestResult],
        status_code: ExitCode,
    )
Hook that runs right before a test session ends (just before the result summary is printed to the terminal).

        This hook has no default implementation. If you implement it, you will not be
        overriding any existing functionality.

        Examples of how you could use this hook:

        * Writing additional information to the terminal after the test session finishes.
        * Writing a file (e.g. an HTML report) to disk containing the results from the test session.
        * Sending a file containing the results off somewhere for storage/processing.

        If you return a
        `rich.console.ConsoleRenderable <https://rich.readthedocs.io/en/latest/protocol.html#console-render>`_
        from this function, it will be rendered to the terminal.
Hook that runs right before a test session ends (just before the result summary is printed to the terminal).
Hook that runs right before a test session ends ( just before the result summary is printed to the terminal ) .
def after_session(
        self,
        config: Config,
        test_results: List[TestResult],
        status_code: ExitCode,
    ) -> Optional[ConsoleRenderable]:
        """
        Hook that runs right before a test session ends (just before the result summary is printed to the terminal).

        This hook has no default implementation. If you implement it, you will not be
        overriding any existing functionality.

        Examples of how you could use this hook:

        * Writing additional information to the terminal after the test session finishes.
        * Writing a file (e.g. an HTML report) to disk containing the results from the test session.
        * Sending a file containing the results off somewhere for storage/processing.

        If you return a
        `rich.console.ConsoleRenderable <https://rich.readthedocs.io/en/latest/protocol.html#console-render>`_
        from this function, it will be rendered to the terminal.
        """
def after_session ( self , config : Config , test_results : List [ TestResult ] , status_code : ExitCode , ) -> Optional [ ConsoleRenderable ] :