Reformatting message tests and passing more tests like it should be
This commit is contained in:
parent
b9573ee09c
commit
26fe2e722e
@ -152,10 +152,30 @@ def run(worker: Worker):
|
|||||||
{'init': ['post', '/message/send', {'channel': chan_d['id'], 'content': 'bs content'}], 'auth': jwt, 'hope': 200},
|
{'init': ['post', '/message/send', {'channel': chan_d['id'], 'content': 'bs content'}], 'auth': jwt, 'hope': 200},
|
||||||
|
|
||||||
# can we get them back tho?
|
# 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': [
|
||||||
{'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},
|
'get', '/message/get_range', {'channel': chan_d['id'], 'start-time': int(msg_chan_name-10), 'end-time': int(msg_chan_name + 10)}
|
||||||
{'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},
|
],
|
||||||
|
'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:
|
for test in message_tests:
|
||||||
|
Loading…
Reference in New Issue
Block a user