dulwich.contrib.test_swift_smoke module¶
Start functional tests
A Swift installation must be available before starting those tests. The account and authentication method used during this functional tests must be changed in the configuration file passed as environment variable. The container used to create a fake repository is defined in cls.fakerepo and will be deleted after the tests.
DULWICH_SWIFT_CFG=/tmp/conf.cfg PYTHONPATH=. python -m unittest dulwich.tests_swift.test_smoke
-
class
dulwich.contrib.test_swift_smoke.DulwichServer(backend, port)¶ Start the TCPGitServer with Swift backend
-
run()¶
-
stop()¶
-
-
class
dulwich.contrib.test_swift_smoke.SwiftRepoSmokeTest(methodName='runTest')¶ Bases:
unittest.case.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.
-
setUp()¶ Hook method for setting up the test fixture before exercising it.
-
classmethod
setUpClass()¶ Hook method for setting up class fixture before running tests in the class.
-
tearDown()¶ Hook method for deconstructing the test fixture after testing it.
-
classmethod
tearDownClass()¶ Hook method for deconstructing the class fixture after running all tests in the class.
-
test_clone_bare()¶
-
test_clone_then_push_data()¶
-
test_init_bare()¶
-
test_push_annotated_tag()¶
-
test_push_branch()¶
-
test_push_commit()¶
-
test_push_data_branch()¶
-
test_push_multiple_branch()¶
-
test_push_remove_branch()¶
-
-
class
dulwich.contrib.test_swift_smoke.SwiftSystemBackend¶ Bases:
dulwich.server.Backend-
open_repository(path)¶ Open the repository at a path.
Parameters: path – Path to the repository Raises: NotGitRepository – no git repository was found at path Returns: Instance of BackendRepo
-