From 7fab60c596cdd2588f9c7b2b4eb9f93f8736b915 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 30 May 2011 20:10:47 +0200 Subject: 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 --- git/test/objects/lib.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 git/test/objects/lib.py (limited to 'git/test/objects/lib.py') 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()) -- cgit v1.2.3 From 6f960586feccff8c1f2c717765eb0a5e8b9cd6f3 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 30 May 2011 21:14:22 +0200 Subject: Fixed remaining tests as good as possible. remote/fetch/pull and submodule tests need some more work. Also, the tests need to be reorganized and move closer to their actual location within gitpython. Hence the refs tests go to git.test.refs, etc --- git/test/objects/lib.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'git/test/objects/lib.py') diff --git a/git/test/objects/lib.py b/git/test/objects/lib.py index c146833d..fe1d9f9d 100644 --- a/git/test/objects/lib.py +++ b/git/test/objects/lib.py @@ -8,11 +8,7 @@ from git.test.lib import ( 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()) + pass -- cgit v1.2.3