aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2017-01-22 17:34:41 +0100
committerMichael Stapelberg <stapelberg@test.invalid>2017-01-22 18:21:19 +0100
commitd6aae91e6b65564757eb8380d5e9112f5175417e (patch)
tree70a5b6d836ef1576ad20d94583d61aec1d2804cd /tests
parent8bf30ffeb8431583dbd447153527a9ae53cdc55a (diff)
GitRepository: allow to init git repository from a subdir
Diffstat (limited to 'tests')
-rw-r--r--tests/doctests/test_GitRepository.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/doctests/test_GitRepository.py b/tests/doctests/test_GitRepository.py
index 30a846e..30ac385 100644
--- a/tests/doctests/test_GitRepository.py
+++ b/tests/doctests/test_GitRepository.py
@@ -72,6 +72,17 @@ def test_empty():
"""
+def test_subdir():
+ """
+ Make surewe can init repos froma subdir
+ >>> import gbp.git, os
+ >>> os.mkdir(os.path.join(dirs['repo'], 'subdir'))
+ >>> repo = gbp.git.GitRepository(os.path.join(dirs['repo'], 'subdir'), toplevel=False)
+ >>> repo.path == dirs['repo']
+ True
+ """
+
+
def test_add_files():
"""
Add some dummy data