def test_qmlscene(): with pytest.raises(subprocess.TimeoutExpired): subprocess.run( [ fspath(qt5_applications._application_path('qmlscene')), ], check=True, env={**create_environment(os.environ), 'QT_DEBUG_PLUGINS': '1'}, timeout=10, )
def run(application_name, args=(), environment=os.environ): modified_environment = qt5_tools.create_environment( reference=environment, ) application_path = qt5_applications._application_path(application_name) completed_process = subprocess.run( [ fspath(application_path), *args, ], env=modified_environment, ) return completed_process.returncode
def application_path(name): return qt5_applications._application_path(name)