MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / test_cluster_worker_cores

Function test_cluster_worker_cores

tests/pyapi/test_cluster.py:43–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def test_cluster_worker_cores():
44 with LocalCluster() as cluster:
45 cluster.start_worker(WorkerConfig(cores=4))
46 hq_env = hq_env_from_cluster(cluster)
47 wait_for_worker_state(hq_env, 1, "RUNNING")
48
49 table = hq_env.command(["worker", "list"], as_table=True)
50 table.check_columns_value(["Resources"], 0, ["cpus 4"])

Callers

nothing calls this directly

Calls 7

LocalClusterClass · 0.90
WorkerConfigClass · 0.90
hq_env_from_clusterFunction · 0.85
wait_for_worker_stateFunction · 0.85
commandMethod · 0.80
check_columns_valueMethod · 0.80
start_workerMethod · 0.45

Tested by

no test coverage detected