diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-17 12:38:21 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-17 12:38:21 +0100 |
commit | 67680a0877f01177dc827beb49c83a9174cdb736 (patch) | |
tree | fbd01b80c94decf4ac08aaebbf489db2ea0cb961 /git/test/test_submodule.py | |
parent | 503b62bd76ee742bd18a1803dac76266fa8901bc (diff) | |
download | gitpython-67680a0877f01177dc827beb49c83a9174cdb736.tar.gz |
Assured Submodule.(update|move) are dealing with .git files appropriately.
However, a simple test-case still fails for reasons not yet understood.
There is more to be fixed here - .remove() still fails.
Diffstat (limited to 'git/test/test_submodule.py')
-rw-r--r-- | git/test/test_submodule.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/git/test/test_submodule.py b/git/test/test_submodule.py index 484e73ae..bb488502 100644 --- a/git/test/test_submodule.py +++ b/git/test/test_submodule.py @@ -656,3 +656,17 @@ class TestSubmodule(TestBase): assert os.path.isfile(module_repo_path) assert find_git_dir(module_repo_path) is not None, "module pointed to by .git file must be valid" # end verify submodule 'style' + + # test move + new_sm_path = 'submodules/one' + sm.set_parent_commit(parent.commit()) + sm.move(new_sm_path) + assert sm.exists() + assert sm.module_exists() + + # remove + sm.remove() + assert sm.exist() + sm_module_path = sm.module().git_dir + assert sm.module_exists() + assert os.path.isdir(sm_module_path) |