b.t.TestUIFactory(TextUIFactory) : class documentation

Part of bzrlib.tests View In Hierarchy

A UI Factory for testing.

Hide the progress bar but emit note()s. Redirect stdin. Allows get_password to be tested without real tty attached.

See also CannedInputUIFactory which lets you provide programmatic input in a structured way.

Method __init__ Create a TextUIFactory.
Method get_non_echoed_password Get password from stdin without trying to handle the echo mode
Method make_progress_view Construct and return a new ProgressView subclass for this UI.

Inherited from TextUIFactory:

Method choose Prompt the user for a list of alternatives.
Method be_quiet Tell the UI to be more quiet, or not.
Method clear_term Prepare the terminal for output.
Method get_integer Get an integer from the user.
Method get_password Prompt the user for a password.
Method get_username Prompt the user for a username.
Method note Write an already-formatted message, clearing the progress bar if necessary.
Method prompt Emit prompt on the CLI.
Method report_transport_activity Called by transports as they do IO.
Method log_transport_activity See UIFactory.log_transport_activity()
Method show_error Show an error message (not an exception) to the user.
Method show_message Show a message to the user.
Method show_warning Show a warning to the user.
Method show_user_warning Show a text message to the user.
Method _make_output_stream_explicit Undocumented
Method _progress_updated A task has been updated and wants to be displayed.
Method _progress_all_finished Called when the top-level progress task finished

Inherited from UIFactory (via TextUIFactory):

Method __enter__ Context manager entry support.
Method __exit__ Context manager exit support.
Method confirm_action Seek user confirmation for an action.
Method is_quiet Undocumented
Method make_output_stream Get a stream for sending out bulk text data.
Method nested_progress_bar Return a nested progress bar.
Method format_user_warning Undocumented
Method get_boolean Get a boolean question answered from the user.
Method recommend_upgrade Recommend the user upgrade a control directory.
Method _progress_finished Called by the ProgressTask when it finishes
def __init__(self, stdout=None, stderr=None, stdin=None):
Create a TextUIFactory.
def get_non_echoed_password(self):
Get password from stdin without trying to handle the echo mode
def make_progress_view(self):
Construct and return a new ProgressView subclass for this UI.
API Documentation for Bazaar, generated by pydoctor at 2019-06-16 00:18:33.