dulwich.tests.compat.test_web module¶
Compatibility tests between Dulwich and the cgit HTTP server.
- warning: these tests should be fairly stable, but when writing/debugging new
tests, deadlocks may freeze the test process such that it cannot be Ctrl-C’ed. On POSIX systems, you can kill the tests with Ctrl-Z, “kill %”.
- class dulwich.tests.compat.test_web.DumbWebTestCase(methodName='runTest')¶
Bases:
WebTests
,CompatTestCase
Test cases for dumb HTTP server.
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_fetch_full_depth_into_shallow_clone_from_dulwich()¶
- test_fetch_same_depth_into_shallow_clone_from_dulwich()¶
- test_new_shallow_clone_from_dulwich()¶
- test_push_to_dulwich()¶
- test_push_to_dulwich_issue_88_standard()¶
- test_push_to_dulwich_remove_branch()¶
- test_shallow_clone_from_git_is_identical()¶
- class dulwich.tests.compat.test_web.SmartWebSideBand64kNoDoneTestCase(methodName='runTest')¶
Bases:
SmartWebTestCase
Test cases for smart HTTP server with side-band-64k and no-done support.
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.
- class dulwich.tests.compat.test_web.SmartWebSideBand64kTestCase(methodName='runTest')¶
Bases:
SmartWebTestCase
Test cases for smart HTTP server with side-band-64k support.
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.
- class dulwich.tests.compat.test_web.SmartWebTestCase(methodName='runTest')¶
Bases:
WebTests
,CompatTestCase
Test cases for smart HTTP server.
This server test case does not use side-band-64k in git-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.
- class dulwich.tests.compat.test_web.WebTests¶
Bases:
ServerTests
Base tests for web server tests.
Contains utility and setUp/tearDown methods, but does non inherit from TestCase so tests are not automatically run.
- protocol = 'http'¶
- dulwich.tests.compat.test_web.patch_capabilities(handler, caps_removed)¶