diff --git a/server-api/client-tests/client.py b/server-api/client-tests/client.py index 604e2f1..1b52c2e 100644 --- a/server-api/client-tests/client.py +++ b/server-api/client-tests/client.py @@ -152,10 +152,30 @@ def run(worker: Worker): {'init': ['post', '/message/send', {'channel': chan_d['id'], 'content': 'bs content'}], 'auth': jwt, 'hope': 200}, # can we get them back tho? - {'init': ['get', '/message/get_range', {'channel': chan_d['id'], 'start-time': int(msg_chan_name)-10, 'end-time': int(msg_chan_name)}], 'auth': jwt, 'hope': 200, 'body': True}, - {'init': ['get', '/message/get_range', {'channel': chan_d['id'], 'end-time': int(msg_chan_name)}], 'auth': jwt, 'hope': 400}, - {'init': ['get', '/message/get_range', {'channel': chan_d['id'], 'start-time': int(msg_chan_name), 'end-time': int(msg_chan_name)}], 'auth': jwt, 'hope': 400}, - {'init': ['get', '/message/get_range', {'channel': chan_d['id'], 'end-time': int(msg_chan_name), 'start-time': int(msg_chan_name)}], 'auth': jwt, 'hope': 400}, + { + 'init': [ + 'get', '/message/get_range', {'channel': chan_d['id'], 'start-time': int(msg_chan_name-10), 'end-time': int(msg_chan_name + 10)} + ], + 'auth': jwt, 'hope': 200 + }, + { + 'init': [ + 'get', '/message/get_range', {'channel': chan_d['id'], 'end-time': int(msg_chan_name)} + ], + 'auth': jwt, 'hope': 400 + }, + { + 'init': [ + 'get', '/message/get_range', {'channel': chan_d['id'], 'start-time': int(msg_chan_name), 'end-time': int(msg_chan_name)} + ], + 'auth': jwt, 'hope': 400 + }, + { + 'init': [ + 'get', '/message/get_range', {'channel': chan_d['id'], 'end-time': int(msg_chan_name), 'start-time': int(msg_chan_name)} + ], + 'auth': jwt, 'hope': 400 + }, ] for test in message_tests: