summaryrefslogtreecommitdiff
path: root/git/test/test_submodule.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-17 16:30:56 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-17 16:30:56 +0100
commitae2b59625e9bde14b1d2d476e678326886ab1552 (patch)
treecb74a6d7c7028dde5759a2e3f7b9ee922e297387 /git/test/test_submodule.py
parentc7b16ade191bb753ebadb45efe6be7386f67351d (diff)
downloadgitpython-ae2b59625e9bde14b1d2d476e678326886ab1552.tar.gz
Made sure dry-run is properly implemented in Submodule.remove()
The root-submodule test is still failing though, this time even earlier than before
Diffstat (limited to 'git/test/test_submodule.py')
-rw-r--r--git/test/test_submodule.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py
index 76412123..ace7ab07 100644
--- a/git/test/test_submodule.py
+++ b/git/test/test_submodule.py
@@ -666,9 +666,12 @@ class TestSubmodule(TestBase):
# remove
sm_module_path = sm.module().git_dir
- sm.remove()
- assert not sm.exists()
- assert not sm.module_exists()
- assert not os.path.isdir(sm_module_path)
+
+ for dry_run in (True, False):
+ sm.remove(dry_run=dry_run)
+ assert sm.exists() == dry_run
+ assert sm.module_exists() == dry_run
+ assert os.path.isdir(sm_module_path) == dry_run
+ # end for each dry-run mode