b.t.b.t.TestCommit(TestCaseWithTransport) : class documentation

Part of bzrlib.tests.blackbox.test_commit View In Hierarchy

No class docstring
Method test_05_empty_commit Commit of tree with no versioned files should fail
Method test_commit_success Successful commit should not leave behind a bzr-commit-* file
Method test_commit_lossy_native A --lossy option to commit is supported.
Method test_commit_lossy_foreign Undocumented
Method test_commit_with_path Commit tree with path of root specified
Method test_10_verbose_commit Add one file and examine verbose commit output
Method prepare_simple_history Prepare and return a working tree with one commit of one file
Method test_verbose_commit_modified Undocumented
Method test_unicode_commit_message_is_filename Unicode commit message same as a filename (Bug #563646).
Method test_warn_about_forgotten_commit_message Test that the lack of -m parameter is caught
Method test_verbose_commit_renamed Undocumented
Method test_verbose_commit_moved Undocumented
Method test_verbose_commit_with_unknown Unknown files should not be listed by default in verbose output
Method test_verbose_commit_with_unchanged Unchanged files should not be listed by default in verbose output
Method test_verbose_commit_includes_master_location Location of master is displayed when committing to bound branch
Method test_commit_sanitizes_CR_in_message Undocumented
Method test_commit_merge_reports_all_modified_files Undocumented
Method test_empty_commit_message Undocumented
Method test_other_branch_commit Undocumented
Method test_out_of_date_tree_commit Undocumented
Method test_local_commit_unbound Undocumented
Method test_commit_a_text_merge_in_a_checkout Undocumented
Method test_commit_exclude_excludes_modified_files Commit -x foo should ignore changes to foo.
Method test_commit_exclude_twice_uses_both_rules Commit -x foo -x bar should ignore changes to foo and bar.
Method test_commit_respects_spec_for_removals Commit with a file spec should only commit removals that match
Method test_strict_commit Commit with --strict works if everything is known
Method test_strict_commit_no_changes commit --strict gives "no changes" if there is nothing to commit
Method test_strict_commit_unknown commit --strict fails if a file is unknown
Method test_fixes_bug_output commit --fixes=lp:23452 succeeds without output.
Method test_no_bugs_no_properties If no bugs are fixed, the bugs property is not set.
Method test_fixes_bug_sets_property commit --fixes=lp:234 sets the lp:234 revprop to 'fixed'.
Method test_fixes_multiple_bugs_sets_properties --fixes can be used more than once to show that bugs are fixed.
Method test_fixes_bug_with_alternate_trackers --fixes can be used on a properly configured branch to mark bug
Method test_fixes_unknown_bug_prefix Undocumented
Method test_fixes_bug_with_default_tracker commit --fixes=234 uses the default bug tracker.
Method test_fixes_invalid_bug_number Undocumented
Method test_fixes_invalid_argument Raise an appropriate error when the fixes argument isn't tag:id.
Method test_no_author If the author is not specified, the author property is not set.
Method test_author_sets_property commit --author='John Doe <jdoe@example.com>' sets the author
Method test_author_no_email Author's name without an email address is allowed, too.
Method test_multiple_authors Multiple authors can be specyfied, and all are stored.
Method test_commit_time Undocumented
Method test_commit_time_bad_time Undocumented
Method test_partial_commit_with_renames_in_tree Undocumented
Method test_commit_readonly_checkout Undocumented
Method setup_editor Undocumented
Method setup_commit_with_template Undocumented
Method test_edit_empty_message Undocumented
Method test_commit_hook_template_accepted Undocumented
Method test_commit_hook_template_rejected Undocumented
Method test_set_commit_message Undocumented
Method test_commit_without_username Ensure commit error if username is not set.
Method test_commit_recursive_checkout Ensure that a commit to a recursive checkout fails cleanly.

Inherited from TestCaseWithTransport:

Method get_vfs_only_server See TestCaseWithMemoryTransport.
Method make_branch_and_tree Create a branch on the transport and a tree locally.
Method assertIsDirectory Assert that relpath within transport is a directory.
Method assertTreesEqual Check that left and right have the same content and properties.
Method setUp Undocumented
Method disable_missing_extensions_warning Some tests expect a precise stderr content.

Inherited from TestCaseInTempDir (via TestCaseWithTransport):

Method check_file_contents Undocumented
Method makeAndChdirToTestDir See TestCaseWithMemoryTransport.makeAndChdirToTestDir().
Method deleteTestDir Undocumented
Method build_tree Build a test tree according to a pattern.
Method assertInWorkingTree Assert whether path or paths are in the WorkingTree
Method assertNotInWorkingTree Assert whether path or paths are not in the WorkingTree
Method _getTestDirPrefix Undocumented

Inherited from TestCaseWithMemoryTransport (via TestCaseWithTransport, TestCaseInTempDir):

Method __init__ Undocumented
Method get_transport Return a writeable transport.
Method get_readonly_transport Return a readonly transport for the test scratch space
Method create_transport_readonly_server Create a transport server from class defined at init.
Method get_readonly_server Get the server instance for the readonly transport
Method get_readonly_url Get a URL for the readonly transport.
Method get_server Get the read/write server instance.
Method get_url Get a URL (or maybe a path) for the readwrite transport.
Method get_vfs_only_url Get a URL (or maybe a path for the plain old vfs transport.
Method make_branch Create a branch on the transport at relpath.
Method get_default_format Undocumented
Method resolve_format Resolve an object to a ControlDir format object.
Method make_bzrdir Undocumented
Method make_repository Create a repository on our default transport at relpath.
Method make_smart_server Undocumented
Method make_branch_and_memory_tree Create a branch on the default transport and a MemoryTree for it.
Method make_branch_builder Undocumented
Method overrideEnvironmentForTesting Undocumented
Method setup_smart_server_with_call_log Sets up a smart server as the transport server with a call log.
Method reset_smart_call_log Undocumented
Method _adjust_url Get a URL (or maybe a path) for the readwrite transport.
Method _create_safety_net Make a fake bzr directory.
Method _check_safety_net Check that the safety .bzr directory have not been touched.
Method _make_test_root Undocumented

Inherited from TestCase (via TestCaseWithTransport, TestCaseInTempDir, TestCaseWithMemoryTransport):

Method debug Undocumented
Method discardDetail Extend the addDetail, getDetails api so we can remove a detail.
Method install_counter_hook Install a counting hook.
Method disable_directory_isolation Turn off directory isolation checks.
Method enable_directory_isolation Enable directory isolation checks.
Method permit_dir Permit a directory to be used by this test. See permit_url.
Method permit_url Declare that url is an ok url to use in this test.
Method permit_source_tree_branch_repo Permit the source tree bzr is running from to be opened.
Method record_directory_isolation Gather accessed directories to permit later access.
Method start_server Start transport_server for this test.
Method assertEqual Undocumented
Method assertEqualDiff Assert two texts are equal, if not raise an exception.
Method assertEqualMode Undocumented
Method assertEqualStat assert that expected and actual are the same stat result.
Method assertLength Assert that obj_with_len is of length length.
Method assertLogsError Assert that func(*args, **kwargs) quietly logs a specific error.
Method assertPositive Assert that val is greater than 0.
Method assertNegative Assert that val is less than 0.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method assertContainsRe Assert that a contains something matching a regular expression.
Method assertNotContainsRe Assert that a does not match a regular expression
Method assertContainsString Undocumented
Method assertNotContainsString Undocumented
Method assertSubset Assert that every entry in sublist is present in superlist.
Method assertListRaises Fail unless excClass is raised when the iterator from func is used.
Method assertRaises Assert that a callable raises a particular exception.
Method assertIs Undocumented
Method assertIsNot Undocumented
Method assertTransportMode Fail if a path does not have mode "mode".
Method assertIsSameRealPath Fail if path1 and path2 points to different files
Method assertIsInstance Fail if obj is not an instance of kls
Method assertFileEqual Fail if path does not contain 'content'.
Method assertDocstring Fail if obj does not have expected_docstring
Method failUnlessExists Undocumented
Method assertPathExists Fail unless path or paths, which may be abs or relative, exist.
Method failIfExists Undocumented
Method assertPathDoesNotExist Fail if path or paths, which may be abs or relative, exist.
Method applyDeprecated Call a deprecated callable without warning the user.
Method callCatchWarnings Call a callable that raises python warnings.
Method callDeprecated Assert that a callable is deprecated in a particular way.
Method thisFailsStrictLockCheck It is known that this test would fail with -Dstrict_locks.
Method overrideAttr Overrides an object attribute restoring it after the test.
Method overrideEnv Set an environment variable, and reset it after the test.
Method recordCalls Monkeypatch in a wrapper that will record calls.
Method knownFailure Declare that this test fails for a known reason
Method time Run callable and accrue the time it takes to the benchmark time.
Method log Undocumented
Method get_log Get a unicode string containing the log from bzrlib.trace.
Method requireFeature This test requires a specific feature is available.
Method run_bzr Invoke bzr, as if it were run from the command line.
Method run_bzr_error Run bzr, and check that stderr contains the supplied regexes
Method run_bzr_subprocess Run bzr in a subprocess for testing.
Method start_bzr_subprocess Start bzr in a subprocess for testing.
Method get_source_path Return the path of the directory containing bzrlib.
Method get_bzr_path Return the path of the 'bzr' executable for this test suite.
Method finish_bzr_subprocess Finish the execution of process.
Method check_tree_shape Compare a tree to a list of expected names.
Method apply_redirected Call callable with redirected std io pipes.
Method reduceLockdirTimeout Reduce the default lock timeout for the duration of the test, so that
Method make_utf8_encoded_stringio Return a StringIOWrapper instance, that will encode Unicode
Method disable_verb Disable a smart server verb for one test.
Method _install_config_stats_hooks Install config hooks to count hook calls.
Method _clear_debug_flags Prevent externally set debug flags affecting tests.
Method _clear_hooks Undocumented
Method _silenceUI Turn off UI for duration of test
Method _check_locks Check that all lock take/release actions have been paired.
Method _track_locks Track lock activity during tests.
Method _lock_acquired Undocumented
Method _lock_released Undocumented
Method _lock_broken Undocumented
Method _preopen_isolate_transport Check that all transport openings are done in the test work area.
Method _preopen_isolate_url Undocumented
Method _track_transports Install checks for transport usage.
Method _ndiff_strings Return ndiff between two strings containing lines.
Method _capture_deprecation_warnings A helper for callDeprecated and applyDeprecated.
Method _startLogFile Setup a in-memory target for bzr and testcase log messages
Method _finishLogFile Flush and dereference the in-memory log for this testcase
Method _cleanEnvironment Undocumented
Method _restoreHooks Undocumented
Method _suppress_log Remove the log info from details.
Method _do_skip Undocumented
Static Method _do_known_failure Undocumented
Static Method _do_not_applicable Undocumented
Static Method _report_skip Override the default _report_skip.
Static Method _report_expected_failure Strip the log.
Static Method _do_unsupported_or_skip Undocumented
Method _run_bzr_autosplit Run bazaar command line, splitting up a string command line.
Method _run_bzr_core Undocumented
Method _add_subprocess_log Undocumented
Method _subprocess_log_cleanup Undocumented
Method _popen Place a call to Popen.
def test_05_empty_commit(self):
Commit of tree with no versioned files should fail
def test_commit_success(self):
Successful commit should not leave behind a bzr-commit-* file
def test_commit_lossy_native(self):
A --lossy option to commit is supported.
def test_commit_lossy_foreign(self):
Undocumented
def test_commit_with_path(self):
Commit tree with path of root specified
def test_10_verbose_commit(self):
Add one file and examine verbose commit output
def prepare_simple_history(self):
Prepare and return a working tree with one commit of one file
def test_verbose_commit_modified(self):
Undocumented
def test_unicode_commit_message_is_filename(self):
Unicode commit message same as a filename (Bug #563646).
def test_warn_about_forgotten_commit_message(self):
Test that the lack of -m parameter is caught
def test_verbose_commit_renamed(self):
Undocumented
def test_verbose_commit_moved(self):
Undocumented
def test_verbose_commit_with_unknown(self):
Unknown files should not be listed by default in verbose output
def test_verbose_commit_with_unchanged(self):
Unchanged files should not be listed by default in verbose output
def test_verbose_commit_includes_master_location(self):
Location of master is displayed when committing to bound branch
def test_commit_sanitizes_CR_in_message(self):
Undocumented
def test_commit_merge_reports_all_modified_files(self):
Undocumented
def test_empty_commit_message(self):
Undocumented
def test_other_branch_commit(self):
Undocumented
def test_out_of_date_tree_commit(self):
Undocumented
def test_local_commit_unbound(self):
Undocumented
def test_commit_a_text_merge_in_a_checkout(self):
Undocumented
def test_commit_exclude_excludes_modified_files(self):
Commit -x foo should ignore changes to foo.
def test_commit_exclude_twice_uses_both_rules(self):
Commit -x foo -x bar should ignore changes to foo and bar.
def test_commit_respects_spec_for_removals(self):
Commit with a file spec should only commit removals that match
def test_strict_commit(self):
Commit with --strict works if everything is known
def test_strict_commit_no_changes(self):
commit --strict gives "no changes" if there is nothing to commit
def test_strict_commit_unknown(self):
commit --strict fails if a file is unknown
def test_fixes_bug_output(self):
commit --fixes=lp:23452 succeeds without output.
def test_no_bugs_no_properties(self):
If no bugs are fixed, the bugs property is not set.

see https://beta.launchpad.net/bzr/+bug/109613

def test_fixes_bug_sets_property(self):
commit --fixes=lp:234 sets the lp:234 revprop to 'fixed'.
def test_fixes_multiple_bugs_sets_properties(self):
--fixes can be used more than once to show that bugs are fixed.
def test_fixes_bug_with_alternate_trackers(self):
--fixes can be used on a properly configured branch to mark bug fixes on multiple trackers.
def test_fixes_unknown_bug_prefix(self):
Undocumented
def test_fixes_bug_with_default_tracker(self):
commit --fixes=234 uses the default bug tracker.
def test_fixes_invalid_bug_number(self):
Undocumented
def test_fixes_invalid_argument(self):
Raise an appropriate error when the fixes argument isn't tag:id.
def test_no_author(self):
If the author is not specified, the author property is not set.
def test_author_sets_property(self):
commit --author='John Doe <jdoe@example.com>' sets the author revprop.
def test_author_no_email(self):
Author's name without an email address is allowed, too.
def test_multiple_authors(self):
Multiple authors can be specyfied, and all are stored.
def test_commit_time(self):
Undocumented
def test_commit_time_bad_time(self):
Undocumented
def test_partial_commit_with_renames_in_tree(self):
Undocumented
def test_commit_readonly_checkout(self):
Undocumented
def setup_editor(self):
Undocumented
def setup_commit_with_template(self):
Undocumented
def test_edit_empty_message(self):
Undocumented
def test_commit_hook_template_accepted(self):
Undocumented
def test_commit_hook_template_rejected(self):
Undocumented
def test_set_commit_message(self):
Undocumented
def test_commit_without_username(self):
Ensure commit error if username is not set.
def test_commit_recursive_checkout(self):
Ensure that a commit to a recursive checkout fails cleanly.
API Documentation for Bazaar, generated by pydoctor at 2019-08-20 00:32:01.