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 self.test_count = 0
if create_admin: 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: elif admin is not None:
self.body = body self.body = body
else: else:
# for now we use this because my dev server has this fake ass acc on it # for now we use this because my dev server has this fake ass acc on it
self.body = { self.body = {
'secret': 'utO088fltYrTZg323NZfAGrAkArMkDfwjPmt0ooAYta2oJOYDWcAd1FnrpVVMqZtMeUX4_Hu57-LHCkXy8gedg==', 'secret': 'JfW_Icct2P1WEo6PQlGb7l1IMd2QsRXAVarPoPZHZnj7NOMWBMdirnH9JqAKgrO5z3fb54QYsWlPPlRGowwFSA==',
'id': 23, 'id': 1,
'name': 'admin', 'name': 'owner sama uwu',
'joindate':1602385239, 'joindate': 69,
'status': 0, 'status': 0,
'permissions': 18446744073709551615 'permissions': 18446744073709551615
} }
@ -95,6 +95,7 @@ class Test:
if __name__ == '__main__': if __name__ == '__main__':
worker = Test(create_admin=False) worker = Test(create_admin=False)
# First the invites api gets some basic tests # First the invites api gets some basic tests
worker.get('/invite/create') worker.get('/invite/create')
@ -112,6 +113,10 @@ if __name__ == '__main__':
# Messaging # Messaging
worker.post('/channels/create', name='send-channel', kind=TEXT_CHANNEL) msg_chan_id = time.time()
worker.post('/message/send', channel='send-channel', content="some random content") msg_chan_raw = worker.post('/channels/create', name=f'{msg_chan_id}', kind=TEXT_CHANNEL)
worker.delete('/channels/delete', name='send-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