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

5 lines
690 B
Python

from pathlib import Path
import json
o=Path(__file__).parent;s={'__file__':str(o/'test-QA.py')};code=(o/'test-QA.py').read_text('utf8').split('try:\n a=login')[0].replace('fixture-private.json','fixture-install-private.json').replace('18548','18550').replace('editorial_20261018_test','editorial_install_20261018_test');exec(code,s)
a=s['login']('authorized');p=s['call'](a,'/management/editorial-installation')['plan'];assert p['ready'] and p['installed'] and p['consistent'];p.pop('hash');(o/'PREVIA-REVISAO-FIXA-QA.json').write_text(json.dumps(p,ensure_ascii=False,indent=2),'utf8');print(json.dumps({'code_hash':p['code_hash'],'installed':p['installed'],'consistent':p['consistent']}))