summaryrefslogtreecommitdiff
path: root/test/test_submodule.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-11-21 20:16:51 +0100
committerSebastian Thiel <byronimo@gmail.com>2010-11-21 21:34:33 +0100
commit9ca0f897376e765989e92e44628228514f431458 (patch)
tree7efa5736504a465cea4fef6fc94e20641a24bf80 /test/test_submodule.py
parent83a9e4a0dad595188ff3fb35bc3dfc4d931eff6d (diff)
downloadgitpython-9ca0f897376e765989e92e44628228514f431458.tar.gz
Updated MANIFEST and setup to include fixtures. Adjusted includes in all tests to work with the new directory structure
Diffstat (limited to 'test/test_submodule.py')
-rw-r--r--test/test_submodule.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/test_submodule.py b/test/test_submodule.py
index d922f32a..c1fa2061 100644
--- a/test/test_submodule.py
+++ b/test/test_submodule.py
@@ -1,7 +1,7 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from git.test.lib import *
from git.exc import *
from git.objects.submodule.base import Submodule
from git.objects.submodule.root import RootModule
@@ -12,7 +12,7 @@ import os
class TestSubmodule(TestBase):
- k_subm_current = "45c0f285a6d9d9214f8167742d12af2855f527fb"
+ k_subm_current = "83a9e4a0dad595188ff3fb35bc3dfc4d931eff6d"
k_subm_changed = "394ed7006ee5dc8bddfd132b64001d5dfc0ffdd3"
k_no_subm_tag = "0.1.6"
@@ -32,7 +32,7 @@ class TestSubmodule(TestBase):
# at a different time, there is None
assert len(Submodule.list_items(rwrepo, self.k_no_subm_tag)) == 0
- assert sm.path == 'lib/git/ext/gitdb'
+ assert sm.path == 'ext/gitdb'
assert sm.path != sm.name # in our case, we have ids there, which don't equal the path
assert sm.url == 'git://gitorious.org/git-python/gitdb.git'
assert sm.branch_path == 'refs/heads/master' # the default ...
@@ -298,10 +298,6 @@ class TestSubmodule(TestBase):
assert nsm.path == nmp
assert rwrepo.submodules[0].path == nmp
- # move it back - but there is a file now - this doesn't work
- # as the empty directories where removed.
- self.failUnlessRaises(IOError, open, abspmp, 'w')
-
mpath = 'newsubmodule'
absmpath = join_path_native(rwrepo.working_tree_dir, mpath)
open(absmpath, 'w').write('')