dulwich.tests.test_porcelain module

Tests for dulwich.porcelain.

class dulwich.tests.test_porcelain.AddTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_add_default_paths()
test_add_default_paths_subdir()
test_add_file()
test_add_file_absolute_path()
test_add_file_clrf_conversion()
test_add_ignored()
test_add_not_in_repo()
class dulwich.tests.test_porcelain.ArchiveTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Tests for the archive command.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_simple()
class dulwich.tests.test_porcelain.BranchCreateTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_branch_exists()
test_new_branch()
class dulwich.tests.test_porcelain.BranchDeleteTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_simple()
test_simple_unicode()
class dulwich.tests.test_porcelain.BranchListTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_new_branch()
test_standard()
class dulwich.tests.test_porcelain.CheckIgnoreTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_check_added_abs()
test_check_added_rel()
test_check_ignored()
class dulwich.tests.test_porcelain.CleanTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

assert_wd(expected_paths)

Assert paths of files and dirs in wd are same as expected_paths

put_files(tracked, ignored, untracked, empty_dirs)

Put the described files in the wd

test_from_root()
test_from_subdir()
class dulwich.tests.test_porcelain.CloneTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_bare_local_with_checkout()
test_no_checkout_with_bare()
test_no_head_no_checkout()
test_no_head_no_checkout_outstream_errstream_autofallback()
test_simple_local()
test_simple_local_with_checkout()
class dulwich.tests.test_porcelain.CommitTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_custom_author()
test_unicode()
class dulwich.tests.test_porcelain.CommitTreeTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_simple()
class dulwich.tests.test_porcelain.DescribeTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_no_commits()
test_single_commit()
test_tag()
test_tag_and_commit()
class dulwich.tests.test_porcelain.DiffTreeTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_diff_apply()
test_empty()
class dulwich.tests.test_porcelain.FetchTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

assert_correct_remote_refs(local_refs, remote_refs, remote_name='origin')

Assert that known remote refs corresponds to actual remote refs.

test_simple()
test_with_remote_name()
class dulwich.tests.test_porcelain.FsckTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_git_dir()
test_none()
class dulwich.tests.test_porcelain.GetObjectBypathTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_missing()
test_simple()
class dulwich.tests.test_porcelain.HelperTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_path_to_tree_path_base()
test_path_to_tree_path_error()
test_path_to_tree_path_rel()
test_path_to_tree_path_syntax()
class dulwich.tests.test_porcelain.InitTests(methodName='runTest')

Bases: dulwich.tests.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_bare()
test_non_bare()
class dulwich.tests.test_porcelain.LogTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_max_entries()
test_simple()
class dulwich.tests.test_porcelain.LsFilesTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_empty()
test_simple()
class dulwich.tests.test_porcelain.LsRemoteTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_empty()
test_some()
class dulwich.tests.test_porcelain.LsTreeTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_empty()
test_recursive()
test_simple()
class dulwich.tests.test_porcelain.MailmapTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_mailmap_lookup()
test_no_mailmap()
class dulwich.tests.test_porcelain.PorcelainTestCase(methodName='runTest')

Bases: dulwich.tests.TestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()

Hook method for setting up the test fixture before exercising it.

class dulwich.tests.test_porcelain.PullTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

setUp()

Hook method for setting up the test fixture before exercising it.

test_no_refspec()
test_simple()
class dulwich.tests.test_porcelain.PushTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_delete()

Basic test of porcelain push, removing a branch.

test_simple()

Basic test of porcelain push where self.repo is the remote. First clone the remote, commit a file to the clone, then push the changes back to the remote.

class dulwich.tests.test_porcelain.ReceivePackTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Tests for receive_pack.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_receive_pack()
class dulwich.tests.test_porcelain.RemoteAddTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_exists()
test_new()
class dulwich.tests.test_porcelain.RemoveTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_remove_file()
test_remove_file_staged()
class dulwich.tests.test_porcelain.RepackTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_empty()
test_simple()
class dulwich.tests.test_porcelain.ResetTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_hard_commit()
test_hard_head()
class dulwich.tests.test_porcelain.RevListTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_simple()
class dulwich.tests.test_porcelain.ShowTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_blob()
test_commit_no_parent()
test_commit_with_change()
test_nolist()
test_simple()
test_tag()
class dulwich.tests.test_porcelain.StatusTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_empty()
test_get_tree_changes_add()

Unit test for get_tree_changes add.

test_get_tree_changes_delete()

Unit test for get_tree_changes delete.

test_get_tree_changes_modify()

Unit test for get_tree_changes modify.

test_get_untracked_paths()
test_get_untracked_paths_nested()
test_status_all()
test_status_base()

Integration test for status functionality.

test_status_crlf_convert()
test_status_crlf_mismatch()
class dulwich.tests.test_porcelain.SymbolicRefTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_set_force_wrong_symbolic_ref()
test_set_symbolic_ref()
test_set_symbolic_ref_other_than_master()
test_set_wrong_symbolic_ref()
class dulwich.tests.test_porcelain.TagCreateTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_annotated()
test_unannotated()
test_unannotated_unicode()
class dulwich.tests.test_porcelain.TagDeleteTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_simple()
class dulwich.tests.test_porcelain.TagListTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_empty()
test_simple()
class dulwich.tests.test_porcelain.UpdateHeadTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_set_new_branch()
test_set_to_branch()
test_set_to_branch_detached()
test_set_to_commit_detached()
class dulwich.tests.test_porcelain.UpdateServerInfoTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_simple()
class dulwich.tests.test_porcelain.UploadPackTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Tests for upload_pack.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_upload_pack()
class dulwich.tests.test_porcelain.WriteTreeTests(methodName='runTest')

Bases: dulwich.tests.test_porcelain.PorcelainTestCase

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

test_simple()
dulwich.tests.test_porcelain.flat_walk_dir(dir_to_walk)