дока по пайтесту:
                  
                  
                  https://docs.pytest.org/en/6.2.x/reference.html#request
                  
                  
                  Там есть и cls и function:
                  
                  
                  > function¶
                  
                  
                  Test function object if the request has a per-function scope.
                  
                  
                  > cls¶
                  
                  
                  Class (can be None) where the test function was collected.
                  
                  
                  
                  
                  
                  Как бл применять function?)))
                  
                  
                
Но зачем?
Обсуждают сегодня