summaryrefslogtreecommitdiff
path: root/git/test/test_submodule.py
diff options
context:
space:
mode:
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