diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-01-22 17:34:41 +0100 |
---|---|---|
committer | Michael Stapelberg <stapelberg@test.invalid> | 2017-01-22 18:21:19 +0100 |
commit | d6aae91e6b65564757eb8380d5e9112f5175417e (patch) | |
tree | 70a5b6d836ef1576ad20d94583d61aec1d2804cd /tests/doctests/test_GitRepository.py | |
parent | 8bf30ffeb8431583dbd447153527a9ae53cdc55a (diff) |
GitRepository: allow to init git repository from a subdir
Diffstat (limited to 'tests/doctests/test_GitRepository.py')
-rw-r--r-- | tests/doctests/test_GitRepository.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/doctests/test_GitRepository.py b/tests/doctests/test_GitRepository.py index 30a846ee..30ac385e 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 |