diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-05-26 16:30:29 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-05-26 16:30:29 +0200 |
commit | 0372be09cf6f68c4ade2e74b66cac8251d005a66 (patch) | |
tree | a8936b3e012d42a3b1907e3b9440b292e6838b0e /tests/doctests/test_GitRepository.py | |
parent | d488ac4fae3683c059de9ef7d7675150acdc2ef1 (diff) |
GitRepository: add set_config
Diffstat (limited to 'tests/doctests/test_GitRepository.py')
-rw-r--r-- | tests/doctests/test_GitRepository.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/doctests/test_GitRepository.py b/tests/doctests/test_GitRepository.py index 420ba1c3..a11211d7 100644 --- a/tests/doctests/test_GitRepository.py +++ b/tests/doctests/test_GitRepository.py @@ -1039,6 +1039,20 @@ def test_set_user_name_and_email(): """ +def test_set_config_and_get_config(): + r""" + Methods tested: + - L{gbp.git.GitRepository.set_config} + - L{gbp.git.GitRepository.get_config} + + >>> import gbp.git + >>> repo = gbp.git.GitRepository(dirs['repo']) + >>> repo.set_config("user.email", "foo@example.com") + >>> repo.get_config("user.email") + 'foo@example.com' + """ + + def test_git_dir(): """ Properties tested: |