forked from forks/microblog.pub
Fix tests
This commit is contained in:
parent
fe46cb4317
commit
849c495b7d
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import time
|
||||
import os
|
||||
|
||||
import requests
|
||||
|
@ -35,7 +36,11 @@ def test_federation():
|
|||
resp = session1.get('http://localhost:5006/api/follow', params={'actor': 'http://instance2_web_1:5005'})
|
||||
assert resp.status_code == 201
|
||||
|
||||
|
||||
time.sleep(2)
|
||||
resp = requests.get('http://localhost:5007/followers', headers={'Accept': 'application/activity+json'})
|
||||
resp.raise_for_status()
|
||||
|
||||
print(resp.json())
|
||||
|
||||
assert resp.json()['first']['orderedItems'] == ['http://instance1_web_1:5005']
|
||||
|
|
Loading…
Reference in a new issue