MCPcopy
hub / github.com/ashleve/lightning-hydra-template / test_experiments

Function test_experiments

tests/test_sweeps.py:14–26  ·  view source on GitHub ↗

Test running all available experiment configs with `fast_dev_run=True.` :param tmp_path: The temporary logging path.

(tmp_path: Path)

Source from the content-addressed store, hash-verified

12@RunIf(sh=True)
13@pytest.mark.slow
14def test_experiments(tmp_path: Path) -> None:
15 """Test running all available experiment configs with `fast_dev_run=True.`
16
17 :param tmp_path: The temporary logging path.
18 """
19 command = [
20 startfile,
21 "-m",
22 "experiment=glob(*)",
23 "hydra.sweep.dir=" + str(tmp_path),
24 "++trainer.fast_dev_run=true",
25 ] + overrides
26 run_sh_command(command)
27
28
29@RunIf(sh=True)

Callers

nothing calls this directly

Calls 1

run_sh_commandFunction · 0.90

Tested by

no test coverage detected