Files
Investidor-V2/outputs/investmoz-editorial-QA-20261018/finish-prepare.py
T
nala cf003c8623
tests / ci (push) Canceled after 0s
versao nrgocios 4
2026-10-18 15:57:06 +02:00

11 lines
1.3 KiB
Python

from pathlib import Path
import json
r=Path.cwd();o=Path(__file__).resolve().parent;q=Path('C:/Users/macbook/.config/investmoz/editorial-QA-20261018/source')
assert (q/'.env').exists()
b=(r/'outputs/investmoz-documentos-publicos-QA-20261018/boot-QA.php').read_text('utf8').replace('documentos-publicos-QA-20261018/source','editorial-QA-20261018/source').replace('public_documents_20261018_test','editorial_20261018_test')
b=b.replace("'portal.profile_access_enabled'=>true", "'portal.managers'=>['gestor-editorial-qa@example.invalid'],'portal.profile_access_enabled'=>true")
(o/'boot-QA.php').write_text(b,'utf8');(o/'router-QA.php').write_bytes((r/'outputs/investmoz-documentos-publicos-QA-20261018/router-QA.php').read_bytes())
(q/'artisan').write_text("<?php require '"+(o/'boot-QA.php').as_posix()+"';exit($app->handleCommand(new Symfony\\Component\\Console\\Input\\ArgvInput));",'utf8')
(o/'QA-ISOLAMENTO.json').write_text(json.dumps({'source':str(q),'database':'editorial_20261018_test','port':55441,'url':'http://127.0.0.1:18548','storage':'isolated; full historical archive copy interrupted as unnecessary; only synthetic bytes used for new demonstrations','active_changes':0,'guard':'exact DB identity before providers and actual PDO port/name'},indent=2),'utf8')
print('Isolated QA ready; archive not required for synthetic workflows')