kopia lustrzana https://gitlab.com/marnanel/chapeau
FIXMEs
rodzic
fe7d31bde8
commit
d5ed69ab3a
|
@ -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),
|
||||
|
|
|
@ -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',
|
||||
|
|
Ładowanie…
Reference in New Issue