dulwich.tests.test_client module¶
- class dulwich.tests.test_client.CheckWantsTests(methodName='runTest')¶
Bases:
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_annotated()¶
- test_fine()¶
- test_missing()¶
- class dulwich.tests.test_client.DefaultUrllib3ManagerTest(methodName='runTest')¶
Bases:
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_config_no_proxy()¶
- test_config_no_proxy_custom_cls()¶
- test_config_no_ssl()¶
- test_config_no_verify_ssl()¶
- test_config_proxy()¶
- test_config_proxy_custom_cls()¶
- test_config_ssl()¶
- test_environment_empty_proxy()¶
- test_environment_no_proxy_1()¶
- test_environment_no_proxy_2()¶
- test_environment_no_proxy_3()¶
- test_environment_no_proxy_4()¶
- test_environment_no_proxy_5()¶
- test_environment_no_proxy_6()¶
- test_environment_no_proxy_ipv4_address_1()¶
- test_environment_no_proxy_ipv4_address_2()¶
- test_environment_no_proxy_ipv4_address_3()¶
- test_environment_no_proxy_ipv6_address_1()¶
- test_environment_no_proxy_ipv6_address_2()¶
- test_environment_no_proxy_ipv6_address_3()¶
- test_environment_proxy()¶
- test_no_config()¶
- class dulwich.tests.test_client.DummyClient(can_read, read, write)¶
Bases:
TraditionalGitClient
Create a new GitClient instance.
- Parameters
thin_packs – Whether or not thin packs should be retrieved
report_activity – Optional callback for reporting transport activity.
include_tags – send annotated tags when sending the objects they point to
- class dulwich.tests.test_client.DummyPopen(*args, **kwards)¶
Bases:
object
- communicate(*args, **kwards)¶
- wait(*args, **kwards)¶
- class dulwich.tests.test_client.FetchPackResultTests(methodName='runTest')¶
Bases:
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_eq()¶
- class dulwich.tests.test_client.GitClientTests(methodName='runTest')¶
Bases:
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_archive_ack()¶
- test_caps()¶
- test_fetch_empty()¶
- test_fetch_pack_ignores_magic_ref()¶
- test_fetch_pack_none()¶
- test_send_pack_delete_only()¶
- test_send_pack_keep_and_delete()¶
- test_send_pack_new_ref()¶
- test_send_pack_new_ref_only()¶
- test_send_pack_no_deleteref_delete_only()¶
- test_send_pack_no_sideband64k_with_update_ref_error()¶
- test_send_pack_none()¶
- class dulwich.tests.test_client.GitCredentialStoreTests(methodName='runTest')¶
Bases:
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.
- classmethod setUpClass()¶
Hook method for setting up class fixture before running tests in the class.
- classmethod tearDownClass()¶
Hook method for deconstructing the class fixture after running all tests in the class.
- test_match_with_matching_username()¶
- test_match_without_username()¶
- test_no_match_with_nonmatching_username()¶
- test_nonmatching_hostname()¶
- test_nonmatching_scheme()¶
- class dulwich.tests.test_client.HttpGitClientTests(methodName='runTest')¶
Bases:
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_from_parsedurl_on_url_with_quoted_credentials()¶
- test_from_parsedurl_username_only()¶
- test_get_url()¶
- test_get_url_bytes_path()¶
- test_get_url_with_username_and_passwd()¶
- test_init_no_username_passwd()¶
- test_init_username_passwd_set()¶
- test_init_username_set_no_password()¶
- test_url_redirect_location()¶
- class dulwich.tests.test_client.LocalGitClientTests(methodName='runTest')¶
Bases:
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.
- send_and_verify(branch, local, target)¶
Send branch from local to remote repository and verify it worked.
- test_clone()¶
- test_fetch_empty()¶
- test_fetch_into_empty()¶
- test_fetch_pack_none()¶
- test_get_refs()¶
- test_get_url()¶
- test_send_pack_with_changes()¶
- test_send_pack_without_changes()¶
- class dulwich.tests.test_client.PLinkSSHVendorTests(methodName='runTest')¶
Bases:
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_run_command_dashes()¶
- test_run_command_password()¶
- test_run_command_password_and_privkey()¶
- test_run_command_with_port_username_and_privkey()¶
- test_run_with_ssh_command()¶
- class dulwich.tests.test_client.RemoteErrorFromStderrTests(methodName='runTest')¶
Bases:
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_error_line()¶
- test_no_error_line()¶
- test_nothing()¶
- class dulwich.tests.test_client.ReportStatusParserTests(methodName='runTest')¶
Bases:
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_invalid_pack()¶
- test_ok()¶
- test_update_refs_error()¶
- class dulwich.tests.test_client.RsyncUrlTests(methodName='runTest')¶
Bases:
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_path()¶
- test_simple()¶
- class dulwich.tests.test_client.SSHGitClientTests(methodName='runTest')¶
Bases:
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_alternative_command_path()¶
- test_alternative_command_path_spaces()¶
- test_connect()¶
- test_default_command()¶
- test_get_url()¶
- test_get_url_with_username_and_port()¶
- test_ssh_command_precedence()¶
- class dulwich.tests.test_client.SubprocessSSHVendorTests(methodName='runTest')¶
Bases:
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_run_command_dashes()¶
- test_run_command_password()¶
- test_run_command_password_and_privkey()¶
- test_run_command_with_port_username_and_privkey()¶
- test_run_with_ssh_command()¶
- class dulwich.tests.test_client.TCPGitClientTests(methodName='runTest')¶
Bases:
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_get_url()¶
- test_get_url_with_port()¶
- class dulwich.tests.test_client.TestGetTransportAndPath(methodName='runTest')¶
Bases:
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_error()¶
- test_git_ssh_explicit()¶
- test_http()¶
- test_http_auth()¶
- test_http_auth_with_username()¶
- test_http_auth_with_username_and_in_url()¶
- test_http_no_auth()¶
- test_local()¶
- test_local_abs_windows_path()¶
- test_ssh_abspath_doubleslash()¶
- test_ssh_explicit()¶
- test_ssh_host()¶
- test_ssh_host_relpath()¶
- test_ssh_implicit()¶
- test_ssh_port()¶
- test_ssh_port_explicit()¶
- test_ssh_relpath()¶
- test_ssh_user_host()¶
- test_ssh_user_host_relpath()¶
- test_tcp()¶
- test_tcp_port()¶
- test_username_and_port_explicit()¶
- test_username_and_port_explicit_unknown_scheme()¶
- class dulwich.tests.test_client.TestGetTransportAndPathFromUrl(methodName='runTest')¶
Bases:
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_error()¶
- test_file()¶
- test_file_win()¶
- test_http()¶
- test_http_port()¶
- test_local_path()¶
- test_ssh_explicit()¶
- test_ssh_homepath()¶
- test_ssh_host_relpath()¶
- test_ssh_port_explicit()¶
- test_ssh_port_homepath()¶
- test_ssh_user_host_relpath()¶
- test_tcp()¶
- test_tcp_port()¶