trilby-heavy
Marnanel Thurman 2020-05-11 19:19:35 +01:00
rodzic fe7d31bde8
commit d5ed69ab3a
2 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -269,6 +269,9 @@ def _deliver_remote(
logger.debug(' -- headers are %s', headers)
# FIXME This is wrong-- we have to look up their inbox address
# if we don't have it, and post to that
response = requests.post(
recipient.url,
data=str(message),

Wyświetl plik

@ -22,11 +22,16 @@ class TestSend(TestCase):
def setUp(self):
httpretty.register_uri(
# FIXME: not the user's address, just their (shared) inbox
httpretty.POST,
REMOTE_URL,
'', # body is ignored
)
# FIXME Here we must also register an ActivityPub form of the user
# at the remote end
# FIXME It would be nice if we could check the Accept content-type
self._zachary = Person(
remote_url = REMOTE_URL,
remote_username = 'zachary',