From 637b8024ca635ea4c80b7eb56a0eab95f1e24b8e Mon Sep 17 00:00:00 2001 From: Andre Manoel Date: Wed, 28 Oct 2026 10:17:02 -0300 Subject: [PATCH] test(slurm): stabilize CLI truncation fixture --- packages/data-designer-slurm/tests/test_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/data-designer-slurm/tests/test_cli.py b/packages/data-designer-slurm/tests/test_cli.py index 9b491f6fb..7b8d3f325 100644 --- a/packages/data-designer-slurm/tests/test_cli.py +++ b/packages/data-designer-slurm/tests/test_cli.py @@ -746,7 +746,9 @@ def test_execute_preserves_sanitized_config_diagnostic(tmp_path: Path) -> None: def test_execute_bounds_large_config_diagnostic(tmp_path: Path) -> None: - run_file = tmp_path / f"{'x' * 240}.json" + run_dir = tmp_path / ("x" * 240) + run_dir.mkdir() + run_file = run_dir / f"{'x' * 240}.json" run_file.write_text(json.dumps({f"unknown_field_{index}": index for index in range(100)})) result = CliRunner().invoke(cli_module.create_cli(), ["execute", str(run_file)])