Tweak queries in tests

This commit is contained in:
Thomas Sileo 2022-09-02 23:47:23 +02:00
parent d5c27287af
commit 16da166ee1
4 changed files with 17 additions and 16 deletions

View file

@ -75,7 +75,7 @@ def test_inbox_incoming_follow_request(
assert inbox_object.ap_object == follow_activity.ap_object
# And a follower was internally created
follower = db.query(models.Follower).one()
follower = db.execute(select(models.Follower)).scalar_one()
assert follower.ap_actor_id == ra.ap_id
assert follower.actor_id == saved_actor.id
assert follower.inbox_object_id == inbox_object.id