@@ -0,0 +1,9 @@
|
||||
from pathlib import Path
|
||||
OUT=Path(__file__).resolve().parent;p=OUT/'option-B8-context-access-HTTP.py';t=p.read_text(encoding='utf-8')
|
||||
# The controller exposes the path fields directly; this is a harness shape correction, not a product failure.
|
||||
t=t.replace("['path']", "")
|
||||
t=t.replace("dest=OUT/'option-B8-context-access-HTTP.json'", "dest=OUT/'option-B8-context-access-finish-HTTP.json'")
|
||||
anchor="owner=lib.Client().login('promoter');clients.append(owner);"
|
||||
assert t.count(anchor)==2
|
||||
t=t.replace(anchor,anchor+"land_state=owner.call('GET','/minhas-oportunidades/32/view',json_response=False);expected=json.loads((OUT/'option-B8-documents-32-progress.json').read_text(encoding='utf-8'))['canonical'];assert land_state['workflowState']=='published'and land_state['values']['canonical']==expected;owner.call('GET','/minhas-oportunidades/32/response');proof['L1.2_recovered_publication']={'new_session':True,'visibility':land_state['profileContext']['publication']['visibility'],'approval_actor':land_state['profileContext']['approval']['actor_id'],'publication_actor':land_state['profileContext']['publication']['actor_id'],'original_contract_and_new_documents_recovered':True};",1)
|
||||
p=OUT/'option-B8-context-resume.py';assert not p.exists();p.write_text(t,encoding='utf-8');exec(compile(t,str(p),'exec'),{'__file__':str(p),'__name__':'__main__'})
|
||||
Reference in New Issue
Block a user