Add one more request to create an actor

This commit is contained in:
wvffle 2022-07-02 11:16:10 +00:00
parent 10eb0b1a75
commit b458c3babe
1 changed files with 3 additions and 1 deletions

View File

@ -11,9 +11,11 @@ res = req.post('http://localhost:8000/api/v1/users/login', data={
'username': 'gitpod',
'password': 'gitpod',
'csrfmiddlewaretoken': token,
'next': '/api/v1/libraries/?scope=me'
})
print(res.status_code, res.content)
res = req.get('http://localhost:8000/')
print(res.status_code)
if res.status_code == 401:
exit(1)