From 16a13276f26e2b4b0cad35c66a527bb8d128d587 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 8 Jul 2011 10:28:17 +0200 Subject: Added basic frame for pygit2 - it just needs some basic methods to be implemented now - depending on the performance, it might actually receive some more work --- git/test/performance/db/test_odb_pygit2.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 git/test/performance/db/test_odb_pygit2.py (limited to 'git/test/performance/db/test_odb_pygit2.py') diff --git a/git/test/performance/db/test_odb_pygit2.py b/git/test/performance/db/test_odb_pygit2.py new file mode 100644 index 00000000..aa886e08 --- /dev/null +++ b/git/test/performance/db/test_odb_pygit2.py @@ -0,0 +1,13 @@ +try: + from git.db.dulwich.complex import DulwichCompatibilityGitDB +except ImportError: + from git.db.complex import PureCompatibilityGitDB as DulwichCompatibilityGitDB +#END handle dulwich compatibility + +from git.test.db.dulwich.lib import DulwichRequiredMetaMixin +from odb_impl import TestObjDBPerformanceBase + +class TestPureDB(TestObjDBPerformanceBase): + __metaclass__ = DulwichRequiredMetaMixin + RepoCls = DulwichCompatibilityGitDB + -- cgit v1.2.3 From a5a0fa2d3befd21534de91e4e2013fbe885995c6 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 8 Jul 2011 17:34:19 +0200 Subject: Fixed up tests to actually use pygit2. Its worth noting that the performance tests only work reliably in a patched up version, or the next point release. --- git/test/performance/db/test_odb_pygit2.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'git/test/performance/db/test_odb_pygit2.py') diff --git a/git/test/performance/db/test_odb_pygit2.py b/git/test/performance/db/test_odb_pygit2.py index aa886e08..bb7ed8a9 100644 --- a/git/test/performance/db/test_odb_pygit2.py +++ b/git/test/performance/db/test_odb_pygit2.py @@ -1,13 +1,13 @@ try: - from git.db.dulwich.complex import DulwichCompatibilityGitDB + from git.db.pygit2.complex import Pygit2CompatibilityGitDB except ImportError: - from git.db.complex import PureCompatibilityGitDB as DulwichCompatibilityGitDB -#END handle dulwich compatibility + from git.db.complex import PureCompatibilityGitDB as Pygit2CompatibilityGitDB +#END handle pygit2 compatibility -from git.test.db.dulwich.lib import DulwichRequiredMetaMixin +from git.test.db.pygit2.lib import Pygit2RequiredMetaMixin from odb_impl import TestObjDBPerformanceBase -class TestPureDB(TestObjDBPerformanceBase): - __metaclass__ = DulwichRequiredMetaMixin - RepoCls = DulwichCompatibilityGitDB +class TestPygit2DB(TestObjDBPerformanceBase): + __metaclass__ = Pygit2RequiredMetaMixin + RepoCls = Pygit2CompatibilityGitDB -- cgit v1.2.3