Add one more request to create an actor
This commit is contained in:
parent
10eb0b1a75
commit
b458c3babe
|
@ -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)
|
Loading…
Reference in New Issue