diff --git a/tests/smoke_test.py b/tests/smoke_test.py index 0b18d05..35198a2 100644 --- a/tests/smoke_test.py +++ b/tests/smoke_test.py @@ -234,6 +234,10 @@ def run(): files=[{'item_index':i,'upload_id':upload_bytes(client,b'LOCAL FINAL FIXTURE '+str(i).encode(),order_id=oid)} for i in range(4)] result=client.call('/operator/orders/'+oid+'/final-files',{'version':version,'files':files,'note':'Local test manual final-file approval'},operator=True) version=result['version'] + if state=='fin': + # Above 10 m the proof comes first: no Finalizado before Prova OK (app/proof.py). + client.call('/operator/orders/'+oid+'/move',{'state':'fin','version':version},operator=True,expected=409) + version=client.call('/operator/orders/'+oid+'/proof',{},operator=True)['version'] moved=client.call('/operator/orders/'+oid+'/move',{'state':state,'version':version,'reason':'Local test correction' if state=='cor' else ''},operator=True) version+=1;assert moved['version']==version client.call('/operator/orders/'+oid+'/move',{'state':'rec','version':0},operator=True,expected=409)