Revision 0ce170fb31cfcd75f0672b002bfb9126ff1e7bfb authored by Jim Allman on 07 November 2023, 14:43:49 UTC, committed by Jim Allman on 07 November 2023, 14:43:49 UTC
This is a hot fix from the current development branch, which might not be ready for prime time.
1 parent 84b2136
test_amendment_list.py
#!/usr/bin/env python
import sys, os
from opentreetesting import test_http_json_method, config
DOMAIN = config("host", "apihost")
SUBMIT_URI = DOMAIN + "/v3/amendments/list_all"
# NB - This vaguely-named methd returns all amendments (complete JSON)
r = test_http_json_method(SUBMIT_URI, "GET", expected_status=200, return_bool_data=True)
if not r[0]:
sys.exit(1)
assert len(r) == 2
assert isinstance(r[1], list)
# print r[1]
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...