test_read_from_outbox.Tests.test_read_announce() now written. Not yet passing.

issue-47
Marnanel Thurman 2020-10-28 20:42:41 +00:00
rodzic e26e2781d6
commit f5b1c4ef0a
1 zmienionych plików z 10 dodań i 6 usunięć

Wyświetl plik

@ -15,7 +15,7 @@ MIME_TYPE = 'application/activity+json'
logger = logging.getLogger(name='kepi')
class TestOutbox(TestCase):
class Tests(TestCase):
def setUp(self):
settings.KEPI['LOCAL_OBJECT_HOSTNAME'] = 'testserver'
@ -106,13 +106,17 @@ class TestOutbox(TestCase):
['Create'])
def test_read_announce(self):
# Announce, aka boost
self._create_example_user([
BOOST,
])
victoria_wood = self._add_Victoria_Wood_post()
boost = Status(
account = self._example_user,
reblog_of = victoria_wood,
)
boost.save()
contents = self._get_collection(OUTBOX)
self.assertEqual(
[x['type'] for x in contents],
['Announce'])
['Create', 'Announce'])