Files
Investidor-V2/outputs/investmoz-navegacao-consolidacao-QA-20261016/validation-fix.py
T
nala cef6e201c7
tests / ci (push) Canceled after 0s
versao nrgocios 2
2026-10-16 20:11:05 +02:00

9 lines
779 B
Python

from pathlib import Path
p=Path('C:/Users/macbook/.config/investmoz/navegacao-consolidacao-QA-20261016/source')
for f in ['app/Services/InvestorContext.php','app/Http/Controllers/InvestorContextController.php']:
q=p/f;s=q.read_text('utf-8');s=s.replace("'nullable|regex:/^S(0[1-9]|1[0-9])$/'", "['nullable','regex:/^S(0[1-9]|1[0-9])$/']");q.write_text(s,'utf-8')
# Remove the historical mock from the consolidated delivery, retaining the prior candidate intact.
q=p/'routes/web.php';s=q.read_text('utf-8');s=s.split('// QA-only navigation preview;')[0].rstrip()+'\n';q.write_text(s,'utf-8')
q=p/'resources/js/pages/qa/navigation.tsx';assert q.resolve().is_relative_to(p.resolve());q.unlink()
print('Step validation corrected; the historical prototype remains in its own clone')