testbuilder/core/base/basetest.py
def load_middleware(self, middleware) -> None:
        """Creates and appends middleware to list of middleswares.

        Note that the order in which this function is called has a role in how the script may run.
        
        Arguments:
            middleware {TBBaseMiddleware} -- Class of TBMiddlware, **not instance of**
        """

        if not issubclass(middleware, TBBaseMiddleware):
            raise ImproperlyConfigured("Middleware is not of subclass TBBaseMiddleware")
        self.middlewares.append(middleware())
Creates and appends middleware to list of middleswares.

        Note that the order in which this function is called has a role in how the script may run.
        
        Arguments:
            middleware {TBBaseMiddleware} -- Class of TBMiddlware, **not instance of**
        
Creates and appends middleware to list of middleswares.
Note that the order in which this function is called has a role in how the script may run.

middleware {TBBaseMiddleware} -- Class of TBMiddlware, **not instance of
Creates and appends middleware to list of middleswares . Note that the order in which this function is called has a role in how the script may run . middleware { TBBaseMiddleware } -- Class of TBMiddlware ** not instance of
def load_middleware(self, middleware) -> None:
        if not issubclass(middleware, TBBaseMiddleware):
            raise ImproperlyConfigured("Middleware is not of subclass TBBaseMiddleware")
        self.middlewares.append(middleware())
def load_middleware ( self , middleware ) -> None : if not issubclass ( middleware , TBBaseMiddleware ) : raise ImproperlyConfigured ( "Middleware is not of subclass TBBaseMiddleware" ) self . middlewares . append ( middleware ( ) )
Creates and appends middleware to list of middleswares.
Creates and appends middleware to list of middleswares .
"""Creates and appends middleware to list of middleswares.

        Note that the order in which this function is called has a role in how the script may run.
        
        Arguments:
            middleware {TBBaseMiddleware} -- Class of TBMiddlware, **not instance of**
        """
self
middleware