from pathlib import Path import datetime,json,hashlib out=Path(__file__).resolve().parent text=(out/'EDITOR-OBSERVADO.txt').read_text('utf-8') assert 'Parque Industrial de Balama'in text and 'Guardar preparação privada'in text assert 'ainda não guardada'in text and 'Guardar não altera a publicação'in text image=out/'VISUAL-INSTALADO.png';assert image.exists() p=out/'OBSERVACAO-OPERACIONAL.json';assert not p.exists() result={'at':datetime.datetime.now(datetime.timezone.utc).isoformat(),'candidate':'parques-operacionais-QA-6aacf653a98e', 'browser':'Edge; user-existing authenticated tab 1168166457','actor_display':'Osmane Nala', 'installation_confirmed':True,'installation_visible_message':'Esquema instalado. Não importa nem publica fichas.', 'target':'investemoz:5432','migration':'2026_10_16_130000_add_investment_zone_editorial_draft', 'installation_actions_clicked':1,'accepted_idempotency_tests_not_repeated':True, 'management_editor_opened_without_save':True, 'editor_url':'https://portal-investidor.test/management/investment/zones/ed4d2fba-95d5-42e3-8ca7-1f520de1036a', 'park':'Parque Industrial de Balama','public_version':3,'private_draft':'ainda não guardada', 'visible_save_guidance':'Guardar não altera a publicação.', 'save_publish_suspend_reserve_support_actions':0,'permissions_changed':False,'MFA_changed':False, 'screenshot_sha256':hashlib.sha256(image.read_bytes()).hexdigest(), 'editor_AX_private_local_only':True,'accepted_QA_tests_repeated':False} p.write_text(json.dumps(result,ensure_ascii=False,indent=2)+'\n','utf-8');print(json.dumps(result,ensure_ascii=False))