MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/xstudio / spawn

Function spawn

python/test/conftest.py:11–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10@pytest.fixture(scope="session")
11def spawn():
12 p = subprocess.Popen(["./bin/xstudio.bin","--session","pythontest","-e","-n","--log-file","xstudio.log"])
13 time.sleep(10)
14 m = RemoteSessionManager(remote_session_path())
15 s = m.find("pythontest")
16 XSTUDIO = Connection()
17 XSTUDIO.connect_remote(
18 s.host(),
19 s.port()
20 )
21 yield XSTUDIO
22 p.send_signal(signal.SIGINT)
23 time.sleep(1)
24 p.terminate()
25 time.sleep(1)
26 p.kill()
27 p.wait()

Callers 3

message_handlerMethod · 0.85
message_handlerMethod · 0.85
csv_exportMethod · 0.85

Calls 10

findMethod · 0.95
connect_remoteMethod · 0.95
ConnectionClass · 0.90
remote_session_pathFunction · 0.85
terminateMethod · 0.80
killMethod · 0.80
waitMethod · 0.80
hostMethod · 0.45
portMethod · 0.45

Tested by

no test coverage detected