diff options
Diffstat (limited to 'tests')
-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 |