Fix tests

This commit is contained in:
Thomas Sileo 2018-05-26 09:57:27 +02:00
parent fe46cb4317
commit 849c495b7d

View file

@ -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']