From 07d6597611124685514959956121175082ac5464 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Thu, 29 Oct 2020 00:49:28 +0000 Subject: [PATCH] test_read_announce working; that class renamed Tests per policy --- kepi/bowler_pub/tests/test_read_from_outbox.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/kepi/bowler_pub/tests/test_read_from_outbox.py b/kepi/bowler_pub/tests/test_read_from_outbox.py index 2578b34..56d34e7 100644 --- a/kepi/bowler_pub/tests/test_read_from_outbox.py +++ b/kepi/bowler_pub/tests/test_read_from_outbox.py @@ -3,7 +3,6 @@ from django.test import TestCase, Client from kepi.trilby_api.tests import create_local_person from kepi.trilby_api.models import Status import kepi.trilby_api.utils as trilby_utils -from unittest import skip import httpretty import logging import json @@ -16,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,15 +105,18 @@ class TestOutbox(TestCase): [x['type'] for x in contents], ['Create']) - @skip("still moving boosts over from the old architecture") 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'])