5 lines
690 B
Python
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']}))
|