changed dev account because i nuked my db again lmao

This commit is contained in:
shockrah 2020-11-17 00:06:09 -08:00
parent a33e517078
commit 88a5d63e4f

View File

@ -21,16 +21,16 @@ class Test:
self.test_count = 0
if create_admin:
self.body = Test.__create_admin()
self.body = Test.__create_admin() #this was an afterthough for pipelines(later not now)
elif admin is not None:
self.body = body
else:
# for now we use this because my dev server has this fake ass acc on it
self.body = {
'secret': 'utO088fltYrTZg323NZfAGrAkArMkDfwjPmt0ooAYta2oJOYDWcAd1FnrpVVMqZtMeUX4_Hu57-LHCkXy8gedg==',
'id': 23,
'name': 'admin',
'joindate':1602385239,
'secret': 'JfW_Icct2P1WEo6PQlGb7l1IMd2QsRXAVarPoPZHZnj7NOMWBMdirnH9JqAKgrO5z3fb54QYsWlPPlRGowwFSA==',
'id': 1,
'name': 'owner sama uwu',
'joindate': 69,
'status': 0,
'permissions': 18446744073709551615
}
@ -96,6 +96,7 @@ class Test:
if __name__ == '__main__':
worker = Test(create_admin=False)
# First the invites api gets some basic tests
worker.get('/invite/create')
@ -112,6 +113,10 @@ if __name__ == '__main__':
# Messaging
worker.post('/channels/create', name='send-channel', kind=TEXT_CHANNEL)
worker.post('/message/send', channel='send-channel', content="some random content")
worker.delete('/channels/delete', name='send-channel')
msg_chan_id = time.time()
msg_chan_raw = worker.post('/channels/create', name=f'{msg_chan_id}', kind=TEXT_CHANNEL)
msg_chan = json.loads(msg_chan_raw)
print(f'Channel id to be used: {msg_chan["id"]}')
worker.post('/message/send', channel=msg_chan['id'], content="some random content")
worker.delete('/channels/delete', channel_id=msg_chan['id']) # finally clean up the channel we created