new passing test of sending a message

This commit is contained in:
shockrah 2020-10-21 23:00:56 -07:00
parent b008a0d3e1
commit 7023ce2b7a

View File

@ -78,7 +78,16 @@ if __name__ == '__main__':
# First the invites api gets some basic tests
worker.get('/invite/create')
worker.post('/channels/create', name='something random', kind=1)
# Channels things
VOICE_CHANNEL = 1
TEXT_CHANNEL = 2
worker.post('/channels/create', name='something random', kind=TEXT_CHANNEL)
worker.get('/channels/list')
worker.delete('/channels/delete', name='something random')
worker.get('/channels/list')
# Messaging
worker.post('/channels/create', name='send-channel', kind=TEXT_CHANNEL)
worker.post('/message/send', channel='send-channel', content="some random content")