7 lines
581 B
Python
7 lines
581 B
Python
from http_common import *
|
|
s=Path(__file__).with_name('prove-core.py').read_text('utf-8')
|
|
start=s.index('def fields(');end=s.index('record=call(',start);exec(s[start:end])
|
|
manager=login('manager');outsider=session('outsider');anon=session();top='0ae14c9a-1adb-4ee7-8094-d5d54d4e75f1';bel='1b57649a-f522-4cd5-8e97-32e82b6e1b37';admin='/api/v2/investment/admin/zones/';public='/api/v2/investment/zones/'
|
|
p0=json.loads((out/'PUBLIC-P0.json').read_text('utf-8'));data=fields(call(manager,admin+top)['record']);data['version_no']=3
|
|
exec(s[s.index("check('public_all_props_unchanged"):])
|