dulwich.tests.test_repository module¶
Tests for the repository.
-
class
dulwich.tests.test_repository.BuildRepoRootTests(methodName='runTest')¶ Bases:
dulwich.tests.TestCaseTests that build on-disk repos from scratch.
Repos live in a temp dir and are torn down after each test. They start with a single commit in master having single file named ‘a’.
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.
-
get_repo_dir()¶
-
overrideEnv(name, value)¶
-
setUp()¶ Hook method for setting up the test fixture before exercising it.
-
test_build_repo()¶
-
test_commit_branch()¶
-
test_commit_config_identity()¶
-
test_commit_config_identity_from_env()¶
-
test_commit_config_identity_in_memoryrepo()¶
-
test_commit_dangling_commit()¶
-
test_commit_dangling_commit_with_parents()¶
-
test_commit_deleted()¶
-
test_commit_encoding()¶
-
test_commit_encoding_from_config()¶
-
test_commit_fail_ref()¶
-
test_commit_follows()¶
-
test_commit_merge_heads()¶
-
test_commit_merge_heads_file()¶
-
test_commit_modified()¶
-
test_commit_no_encode_decode()¶
-
test_commit_symlink()¶
-
test_discover_intended()¶
-
test_discover_isrepo()¶
-
test_discover_notrepo()¶
-
test_get_shallow()¶
-
test_stage_absolute()¶
-
test_stage_deleted()¶
-
test_stage_directory()¶
-
test_update_shallow()¶
-
-
class
dulwich.tests.test_repository.CheckUserIdentityTests(methodName='runTest')¶ Bases:
dulwich.tests.TestCaseCreate 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_invalid()¶
-
test_valid()¶
-
-
class
dulwich.tests.test_repository.CreateRepositoryTests(methodName='runTest')¶ Bases:
dulwich.tests.TestCaseCreate 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.
-
assertFileContentsEqual(expected, repo, path)¶
-
test_create_disk_bare()¶
-
test_create_disk_bare_mkdir()¶
-
test_create_disk_non_bare()¶
-
test_create_disk_non_bare_mkdir()¶
-
test_create_memory()¶
-
-
class
dulwich.tests.test_repository.MemoryRepoTests(methodName='runTest')¶ Bases:
dulwich.tests.TestCaseCreate 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_description()¶
-
-
class
dulwich.tests.test_repository.RepositoryRootTests(methodName='runTest')¶ Bases:
dulwich.tests.TestCaseCreate 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.
-
assertFilesystemHidden(path)¶
-
mkdtemp()¶
-
open_repo(name)¶
-
test_as_dict()¶
-
test_clone()¶
-
test_clone_bare()¶
-
test_clone_checkout_and_bare()¶
-
test_clone_empty()¶ Test clone() doesn’t crash if HEAD points to a non-existing ref.
This simulates cloning server-side bare repository either when it is still empty or if user renames master branch and pushes private repo to the server. Non-bare repo HEAD always points to an existing ref.
-
test_clone_no_head()¶
-
test_common_revisions()¶ This test demonstrates that
find_common_revisions()actually returns common heads, not revisions; dulwich already usesfind_common_revisions()in such a manner (seeRepo.fetch_objects()).
-
test_contains_missing()¶
-
test_contains_object()¶
-
test_contains_ref()¶
-
test_delitem()¶
-
test_fetch()¶
-
test_fetch_ignores_missing_refs()¶
-
test_get_config()¶
-
test_get_config_stack()¶
-
test_get_description()¶
-
test_get_no_description()¶
-
test_get_object()¶
-
test_get_object_non_existant()¶
-
test_get_peeled()¶
-
test_get_peeled_not_tag()¶
-
test_get_refs()¶
-
test_get_walker()¶
-
test_getitem_unicode()¶
-
test_head()¶
-
test_init_existing()¶
-
test_init_mkdir()¶
-
test_init_mkdir_unicode()¶
-
test_merge_history()¶
-
test_out_of_order_merge()¶ Test that revision history is ordered by date, not parent order.
-
test_set_description()¶
-
test_setitem()¶
-
test_shell_hook_commit_msg()¶
-
test_shell_hook_post_commit()¶
-
test_shell_hook_pre_commit()¶
-
test_simple_props()¶
-
test_submodule()¶
-
test_working_tree()¶
-