(hq_env: HqEnv, flavor: ManagerFlavor)
| 399 | |
| 400 | @all_flavors |
| 401 | def test_too_high_time_request(hq_env: HqEnv, flavor: ManagerFlavor): |
| 402 | with MockJobManager(hq_env, flavor.default_handler()): |
| 403 | start_server_with_quick_refresh(hq_env) |
| 404 | hq_env.command(["submit", "--time-request", "1h", "sleep", "1"]) |
| 405 | |
| 406 | add_queue(hq_env, manager=flavor.manager_type(), name="foo", time_limit="30m") |
| 407 | time.sleep(1) |
| 408 | |
| 409 | table = hq_env.command(["alloc", "info", "1"], as_table=True) |
| 410 | assert len(table) == 0 |
| 411 | |
| 412 | |
| 413 | def get_exec_line(script_path: str): |
nothing calls this directly
no test coverage detected