(self, config: Config)
Hook which is called immediately at the start of a test session (before tests are collected).

        You can implement this hook to run some setup code.

        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:

        * Printing some information to the terminal about your plugin.
        * Creating a file on disk which you'll write to in other hooks.

        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 which is called immediately at the start of a test session (before tests are collected).
Hook which is called immediately at the start of a test session ( before tests are collected ) .
def before_session(self, config: Config) -> Optional[ConsoleRenderable]:
        """
        Hook which is called immediately at the start of a test session (before tests are collected).

        You can implement this hook to run some setup code.

        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:

        * Printing some information to the terminal about your plugin.
        * Creating a file on disk which you'll write to in other hooks.

        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 before_session ( self , config : Config ) -> Optional [ ConsoleRenderable ] :