dulwich.tests.test_object_store module

Tests for the object store interface.

class dulwich.tests.test_object_store.CommitTreeChangesTests(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.

test_add_blob()
test_add_blob_in_dir()
test_delete_blob()
test_no_changes()
class dulwich.tests.test_object_store.DiskObjectStoreTests(methodName='runTest')

Bases: dulwich.tests.test_object_store.PackBasedObjectStoreTests, 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.

tearDown()

Hook method for deconstructing the test fixture after testing it.

test_add_alternate_path()
test_add_pack()
test_add_thin_pack()
test_add_thin_pack_empty()
test_alternates()
test_corrupted_object_raise_exception()

Corrupted sha1 disk file should raise specific exception

test_pack_dir()
test_rel_alternative_path()
class dulwich.tests.test_object_store.MemoryObjectStoreTests(methodName='runTest')

Bases: dulwich.tests.test_object_store.ObjectStoreTests, 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.

test_add_pack()
test_add_pack_emtpy()
test_add_thin_pack()
test_add_thin_pack_empty()
class dulwich.tests.test_object_store.ObjectStoreGraphWalkerTests(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.

get_walker(heads, parent_map)
test_ack_invalid_value()
test_child_ack_later()
test_descends()
test_empty()
test_only_once()
test_parent_present()
test_present()
class dulwich.tests.test_object_store.ObjectStoreTests

Bases: object

make_tag(name, obj)
test_add_commit()
test_add_object()
test_add_objects()
test_add_objects_empty()
test_close()
test_contains_nonexistant()
test_determine_wants_all()
test_determine_wants_all_zero()
test_get_nonexistant()
test_get_raw()
test_iter()
test_iter_tree_contents()
test_iter_tree_contents_include_trees()
test_peel_sha()
test_store_resilience()

Test if updating an existing stored object doesn’t erase the object from the store.

test_tree_changes()
class dulwich.tests.test_object_store.OverlayObjectStoreTests(methodName='runTest')

Bases: dulwich.tests.test_object_store.ObjectStoreTests, 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_object_store.PackBasedObjectStoreTests

Bases: dulwich.tests.test_object_store.ObjectStoreTests

tearDown()
test_empty_packs()
test_pack_loose_objects()
test_repack()
test_repack_existing()
class dulwich.tests.test_object_store.TestReadPacksFile(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_read_packs()
class dulwich.tests.test_object_store.TreeLookupPathTests(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.

get_object(sha)
setUp()

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

test_lookup_blob()
test_lookup_nonexistent()
test_lookup_not_tree()
test_lookup_tree()