def METHOD_NAME(app):
    with app.app_context():
        db_mock = get_db()
        test_entities = {
            "users": [{"user_id": i + 1} for i in range(20)],
            "follows": [
                {"follower_user_id": i + 2, "followee_user_id": 1, "created_at": t1}
                for i in range(4)
            ]
            + [
                {"follower_user_id": i + 2, "followee_user_id": 1, "created_at": t3}
                for i in range(4, 8)
            ],
            "notification_seens": [{"user_id": 1, "seen_at": t2}],
        }
        populate_mock_db(db_mock, test_entities)
        with db_mock.scoped_session() as session:
            args = {"limit": 10, "user_id": 1}
            u1_notifications = get_notifications(session, args)
            assert len(u1_notifications) == 2
            assert u1_notifications[0]["group_id"] == "follow:1"
            assert u1_notifications[0]["is_seen"] == False
            assert len(u1_notifications[0]["actions"]) == 4
            for user_id_follower in range(2, 6):
                assert any(
                    act["data"]["follower_user_id"] == user_id_follower
                    for act in u1_notifications[0]["actions"]
                )
            assert u1_notifications[1]["group_id"] == "follow:1"
            assert u1_notifications[1]["is_seen"] == True
            assert u1_notifications[1]["seen_at"] == t2
            assert len(u1_notifications[1]["actions"]) == 4
            for user_id_follower in range(6, 10):
                assert any(
                    act["data"]["follower_user_id"] == user_id_follower
                    for act in u1_notifications[1]["actions"]
                )