def METHOD_NAME(self, patch, db_session):
    decorator = patch("h.services.user.on_transaction_end")
    UserService(default_authority="example.com", session=db_session)
    decorator.assert_called_once_with(db_session)