dulwich.tests.compat.test_repository module¶
Compatibility tests for dulwich repositories.
-
class
dulwich.tests.compat.test_repository.
InitNewWorkingDirectoryTestCase
(methodName='runTest')¶ Bases:
dulwich.tests.compat.test_repository.WorkingTreeTestCase
Test compatibility of Repo.init_new_working_directory.
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.
-
min_git_version
= (2, 5, 0)¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
test_bare
()¶
-
test_head_equality
()¶
-
-
class
dulwich.tests.compat.test_repository.
ObjectStoreTestCase
(methodName='runTest')¶ Bases:
dulwich.tests.compat.utils.CompatTestCase
Tests for git repository compatibility.
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.
-
assertShasMatch
(expected_shas, actual_shas_iter)¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
test_all_objects
()¶
-
test_bare
()¶
-
test_head
()¶
-
test_loose_objects
()¶
-
test_packed_objects
()¶
-
test_refs
()¶
-
-
class
dulwich.tests.compat.test_repository.
WorkingTreeTestCase
(methodName='runTest')¶ Bases:
dulwich.tests.compat.test_repository.ObjectStoreTestCase
Test for compatibility with git-worktree.
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.
-
create_new_worktree
(repo_dir, branch)¶ Create a new worktree using git-worktree.
Parameters: - repo_dir – The directory of the main working tree.
- branch – The branch or commit to checkout in the new worktree.
Returns: The path to the new working tree.
-
min_git_version
= (2, 5, 0)¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
test_bare
()¶
-
test_git_worktree_list
()¶
-
test_head_equality
()¶
-
test_refs
()¶
-