Skip to content
Prev Previous commit
Next Next commit
Ensure ut_method type for external patches
  • Loading branch information
ShaharNaveh committed Sep 9, 2025
commit 96335954fb8831b685d25946e23d23554c234568
5 changes: 4 additions & 1 deletion scripts/lib_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,10 @@ def build_argparse() -> argparse.ArgumentParser:
if args.patches:
patches = {
cls_name: {
test_name: [PatchSpec(**spec) for spec in specs]
test_name: [
PatchSpec(**spec)._replace(ut_method=UtMethod(spec["ut_method"]))
for spec in specs
]
for test_name, specs in tests.items()
}
for cls_name, tests in json.loads(args.patches.read_text()).items()
Expand Down