l.a.t.t.FakeQuestionModifiedNotification(QuestionModifiedDefaultNotification) : class documentation

Part of lp.answers.tests.test_question_notifications View In Hierarchy

Subclass that do not send emails and with simpler initialization.

Since notifications are handlers that accomplish their action on initialization, override the relevant method to make them easier to test.

Method initialize Leave the fixture to initialize the notification properly.
Method shouldNotify Do not send emails!

Inherited from QuestionModifiedDefaultNotification:

Method metadata_changes_text Textual representation of the changes to the question metadata.
Method getSubject The reply subject line.
Method getHeaders Add a References header.
Method getBody See QuestionNotification.
Method getNewMessageText Should return the notification text related to a new message.

Inherited from QuestionNotification (via QuestionModifiedDefaultNotification):

Method __init__ Base constructor.
Method user Return the user from the event.
Method enqueue Create a job to send email about the event.
Method unsupported_language Whether the question language is unsupported or not.
Method unsupported_language_warning Warning about the fact that the question is written in an
def initialize(self):
Leave the fixture to initialize the notification properly.
def shouldNotify(self):
Do not send emails!
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.