From 8561f594e84fe5369c7a0f573adf4bc9668c77df Mon Sep 17 00:00:00 2001 From: southfox Date: Mon, 8 May 2023 12:07:50 +0800 Subject: [PATCH] [chore] rename and remove comment --- tests/test_inbox.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_inbox.py b/tests/test_inbox.py index 5033bb2..c7598f4 100644 --- a/tests/test_inbox.py +++ b/tests/test_inbox.py @@ -24,7 +24,6 @@ def test_inbox_follow_request( client: TestClient, respx_mock: respx.MockRouter, ) -> None: - # build test actor ra = build_remote_actor() ap_id = ra.ap_id # type: ignore @@ -87,12 +86,11 @@ def test_inbox_follow_request( assert follower_actor == None -def test_inbox_announce_request( +def test_inbox_announce_activity( db: Session, client: TestClient, respx_mock: respx.MockRouter, ) -> None: - # build test actor ra = build_remote_actor() @@ -154,4 +152,4 @@ def test_inbox_announce_request( saved_note = db.execute(select(models.OutboxObject)).scalar_one() print(saved_note.ap_id) - assert saved_note.announces_count == 1 # TODO WIP + assert saved_note.announces_count == 1