(self, config: Config, collected_tests: List[Test])
Called before tests are filtered out by ``--search``, ``--tags``, etc, and before assertion rewriting.

        Allows you to transform or filter out tests (by modifying the ``collected_tests`` list in place).

        This hook has no default implementation. You can implement it without overriding existing functionality.

        Examples of how you could use this hook:

        * Filter out tests
        * Reorder tests
        * Generate statistics about tests pre-run
        * Attach some data to each test to use later
Called before tests are filtered out by ``--search``, ``--tags``, etc, and before assertion rewriting.
Called before tests are filtered out by -- search -- tags etc and before assertion rewriting .
def preprocess_tests(self, config: Config, collected_tests: List[Test]):
        """
        Called before tests are filtered out by ``--search``, ``--tags``, etc, and before assertion rewriting.

        Allows you to transform or filter out tests (by modifying the ``collected_tests`` list in place).

        This hook has no default implementation. You can implement it without overriding existing functionality.

        Examples of how you could use this hook:

        * Filter out tests
        * Reorder tests
        * Generate statistics about tests pre-run
        * Attach some data to each test to use later
        """
def preprocess_tests ( self , config : Config , collected_tests : List [ Test ] ) :