kopia lustrzana https://gitlab.com/marnanel/chapeau
test_read_from_outbox.Tests.test_read_announce() now written. Not yet passing.
rodzic
e26e2781d6
commit
f5b1c4ef0a
|
@ -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'])
|
||||
|
|
Ładowanie…
Reference in New Issue