ActivityPubUtilsTest.test_convert_follow_as1_no_from_user: avoid network fetches

pull/935/head
Ryan Barrett 2024-04-01 23:03:23 -07:00
rodzic fe41336110
commit 10e5b00dd6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -2175,6 +2175,10 @@ class ActivityPubUtilsTest(TestCase):
ignore=['to', 'attachment'])
def test_convert_follow_as1_no_from_user(self):
# prevent HTTP fetches to infer protocol
self.store_object(id='https://mas.to/6d1a', source_protocol='activitypub')
self.store_object(id='https://user.com/', source_protocol='web')
obj = Object(our_as1=as2.to_as1(FOLLOW))
self.assert_equals(FOLLOW, common.unwrap(ActivityPub.convert(obj)),
ignore=['to'])