aboutsummaryrefslogtreecommitdiff
path: root/git/test/objects/lib.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-05-30 20:10:47 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-05-30 20:10:47 +0200
commit7fab60c596cdd2588f9c7b2b4eb9f93f8736b915 (patch)
tree7e35823a1fd9e792d33481fd9740e280c67d9165 /git/test/objects/lib.py
parentc192638aae09c1b5c087d67cc99dd4c7ec4ed916 (diff)
downloadGitPython-7fab60c596cdd2588f9c7b2b4eb9f93f8736b915.tar.gz
GitPython-7fab60c596cdd2588f9c7b2b4eb9f93f8736b915.zip
Fixed all of the object tests, except for the submodule handling which needs more work as the amount of submodules changed in fact. Maybe I should just generate a test repository with gitpython as submodule to get the recursion depth required to satisfy the test
Diffstat (limited to 'git/test/objects/lib.py')
-rw-r--r--git/test/objects/lib.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/git/test/objects/lib.py b/git/test/objects/lib.py
new file mode 100644
index 00000000..c146833d
--- /dev/null
+++ b/git/test/objects/lib.py
@@ -0,0 +1,18 @@
+"""Provide customized obhject testing facilities"""
+
+from git.test.lib import (
+ rorepo_dir,
+ TestBase,
+ assert_equal,
+ assert_not_equal,
+ with_rw_repo,
+ StringProcessAdapter,
+ )
+from git.repo import Repo
+
+class TestObjectBase(TestBase):
+ """Provides a default read-only repository in the rorepo member"""
+
+ @classmethod
+ def setUpAll(cls):
+ cls.rorepo = Repo(rorepo_dir())