+ More tests for the /neighbor/add and /neighbor/list routes

These are baseline tests however a new /neighbor/remove & /neighbor/edit route should be edited before I call this done on the roadmap.
Also some more intense testing around these current routes is required.
Mostly because the expectation that JSON is being sent  to us in /neighbor/add
It could be worth the effort to send this data as json in the body
! Currently parameters are sent via the query string is in line with how most routes behave
For this route is just feels weird dealing with al the issues with json in the query string
This commit is contained in:
shockrah 2021-05-09 23:11:51 -07:00
parent a79195076d
commit c443b9bb07

View File

@ -124,7 +124,9 @@ if __name__ == '__main__':
req(admin, 'post', '/members/me/nickname', {'nick': f'randy-{time()}'}, 200),
req(admin , 'get', '/invite/join', {'code': 123}, 404),
req(admin , "get", "/meta", {}, 200),
req(admin, 'get', '/neighbors/list', {}, 200, verbose=True)
req(admin, 'get', '/neighbor/list', {}, 200),
req(admin,'post', '/neighbor/add', {'name':'name','url':'url','wsurl':'wsurl','description':'asdf','tags':'["red","blue"]'}, 200),
req(admin, 'get', '/neighbor/list', {}, 200, verbose=True)
])
# add this after fire the generic tests