mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 03:49:26 +00:00
14 lines
429 B
Python
14 lines
429 B
Python
from pathlib import Path
|
|
|
|
from openultrasast.config import load_config
|
|
from openultrasast.run import create_scan_run
|
|
|
|
|
|
def test_create_scan_run_writes_directories_and_config(tmp_path: Path) -> None:
|
|
run = create_scan_run(tmp_path, load_config(None))
|
|
|
|
assert run.root.exists()
|
|
assert (run.root / "preprocess").is_dir()
|
|
assert (run.root / "resolved_config.json").is_file()
|
|
assert run.root.parent.name == "runs"
|