tests/test_examples.py
def _install_requirements(self, requirements_filename: Union[str, os.PathLike]):
        """
        Installs the necessary requirements to run the example if the provided file exists, otherwise does nothing.
        """
        if not Path(requirements_filename).exists():
            return
        cmd_line = f"pip install -r {requirements_filename}".split()
        p = subprocess.Popen(cmd_line)
        return_code = p.wait()
        self.assertEqual(return_code, 0)

        Installs the necessary requirements to run the example if the provided file exists, otherwise does nothing.
        
Installs the necessary requirements to run the example if the provided file exists, otherwise does nothing.
Installs the necessary requirements to run the example if the provided file exists otherwise does nothing .
def _install_requirements(self, requirements_filename: Union[str, os.PathLike]):
        if not Path(requirements_filename).exists():
            return
        cmd_line = f"pip install -r {requirements_filename}".split()
        p = subprocess.Popen(cmd_line)
        return_code = p.wait()
        self.assertEqual(return_code, 0)
def _install_requirements ( self , requirements_filename : Union [ str , os . PathLike ] ) : if not Path ( requirements_filename ) . exists ( ) : return cmd_line = f"pip install -r {requirements_filename}" . split ( ) p = subprocess . Popen ( cmd_line ) return_code = p . wait ( ) self . assertEqual ( return_code , 0 )
Installs the necessary requirements to run the example if the provided file exists, otherwise does nothing.
Installs the necessary requirements to run the example if the provided file exists otherwise does nothing .
"""
        Installs the necessary requirements to run the example if the provided file exists, otherwise does nothing.
        """
self
requirements_filename
Union[str, os.PathLike]