summaryrefslogtreecommitdiff
path: root/git/test
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-05-10 10:21:26 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-05-10 10:21:26 +0200
commitcd26aaebbda94dc3740e41bbd3f91ba6b1a25c10 (patch)
tree7ea33a01a8a33b3cea92e0f6872bb1c7b5279a5e /git/test
parent7ae36c3e019a5cc16924d1b6007774bfb625036f (diff)
downloadgitpython-cd26aaebbda94dc3740e41bbd3f91ba6b1a25c10.tar.gz
Made repository paths methods a property to be compatible with the existing repo interface. Added submodule interface ... goal is to provide all of the extra repo functionality in custom interfaces
Diffstat (limited to 'git/test')
-rw-r--r--git/test/test_base.py27
-rw-r--r--git/test/test_import.py14
2 files changed, 34 insertions, 7 deletions
diff --git a/git/test/test_base.py b/git/test/test_base.py
index ca812ed4..7488ac6b 100644
--- a/git/test/test_base.py
+++ b/git/test/test_base.py
@@ -12,10 +12,15 @@ from lib import (
)
import git.objects.base as base
+from git.objects import (
+ Blob,
+ Tree,
+ Commit,
+ TagObject
+ )
import git.refs as refs
-import os
-from git import *
+
from itertools import chain
from git.objects.util import get_object_type_by_name
from git.util import hex_to_bin
@@ -23,14 +28,22 @@ import tempfile
##################
-from git import *
from git.util import (
NULL_BIN_SHA
)
-from git.typ import (
- str_blob_type
- )
+from git.typ import str_blob_type
+from git.base import (
+ OInfo,
+ OPackInfo,
+ ODeltaPackInfo,
+ OStream,
+ OPackStream,
+ ODeltaPackStream,
+ IStream,
+ )
+
+import os
class TestBase(TestBase):
@@ -94,7 +107,7 @@ class TestBase(TestBase):
assert base.Object in get_object_type_by_name(tname).mro()
# END for each known type
- assert_raises( ValueError, get_object_type_by_name, "doesntexist" )
+ self.failUnlessRaises(ValueError, get_object_type_by_name, "doesntexist")
def test_object_resolution(self):
# objects must be resolved to shas so they compare equal
diff --git a/git/test/test_import.py b/git/test/test_import.py
new file mode 100644
index 00000000..d97cee55
--- /dev/null
+++ b/git/test/test_import.py
@@ -0,0 +1,14 @@
+# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors
+#
+# This module is part of GitDB and is released under
+# the New BSD License: http://www.opensource.org/licenses/bsd-license.php
+"""This module's whole purpose is to verify the __all__ descriptions in the respective
+module, by importing using from x import *"""
+
+# perform the actual imports
+
+from nose import SkipTest
+
+class TestDummy(object):
+ def test_base(self):
+ raise SkipTest("todo")