Cleanup, improve the collection resolver

This commit is contained in:
Thomas Sileo
2018-05-27 11:01:34 +02:00
parent 888410d646
commit 25a75a9cef
6 changed files with 99 additions and 41 deletions

View File

@@ -53,6 +53,11 @@ class Instance(object):
return resp.json()['first']['orderedItems']
def outbox(self):
resp = self.session.get(f'{self.host_url}/following', headers={'Accept': 'application/activity+json'})
resp.raise_for_status()
return resp.json()
def test_federation():
"""Ensure the homepage is accessible."""