(hq_env: HqEnv)
| 75 | |
| 76 | |
| 77 | def test_manager_set_none(hq_env: HqEnv): |
| 78 | hq_env.start_server() |
| 79 | args = ["--manager", "none"] |
| 80 | hq_env.start_worker(cpus=1, args=args) |
| 81 | hq_env.start_worker(cpus=1, args=args, env={"PBS_ENVIRONMENT": "PBS_BATCH", "PBS_JOBID": "x1234"}) |
| 82 | hq_env.start_worker(cpus=1, args=args, env={"SLURM_JOB_ID": "y5678"}) |
| 83 | |
| 84 | table = hq_env.command(["worker", "list"], as_table=True) |
| 85 | |
| 86 | for i in [0, 1, 2]: |
| 87 | table.check_columns_value(["Manager", "Manager Job ID"], i, ["None", "N/A"]) |
| 88 | |
| 89 | |
| 90 | def test_manager_pbs_no_env(hq_env: HqEnv): |
nothing calls this directly
no test coverage detected