aboutsummaryrefslogtreecommitdiff
path: root/git/test/db/dulwich
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/db/dulwich')
-rw-r--r--git/test/db/dulwich/lib.py8
-rw-r--r--git/test/db/dulwich/test_base.py10
2 files changed, 9 insertions, 9 deletions
diff --git a/git/test/db/dulwich/lib.py b/git/test/db/dulwich/lib.py
index a58469f1..bd6a0564 100644
--- a/git/test/db/dulwich/lib.py
+++ b/git/test/db/dulwich/lib.py
@@ -1,14 +1,15 @@
"""dulwich specific utilities, as well as all the default ones"""
from git.test.lib import (
- InheritedTestMethodsOverrideWrapperMetaClsAutoMixin,
- needs_module_or_skip
- )
+ InheritedTestMethodsOverrideWrapperMetaClsAutoMixin,
+ needs_module_or_skip
+)
__all__ = ['needs_dulwich_or_skip', 'DulwichRequiredMetaMixin']
#{ Decoorators
+
def needs_dulwich_or_skip(func):
"""Skip this test if we have no dulwich - print warning"""
return needs_module_or_skip('dulwich')(func)
@@ -17,6 +18,7 @@ def needs_dulwich_or_skip(func):
#{ MetaClasses
+
class DulwichRequiredMetaMixin(InheritedTestMethodsOverrideWrapperMetaClsAutoMixin):
decorator = [needs_dulwich_or_skip]
diff --git a/git/test/db/dulwich/test_base.py b/git/test/db/dulwich/test_base.py
index ed2f8975..82713103 100644
--- a/git/test/db/dulwich/test_base.py
+++ b/git/test/db/dulwich/test_base.py
@@ -7,7 +7,6 @@ from git.test.lib import TestBase, with_rw_repo
from git.test.db.base import RepoBase
-
try:
import dulwich
except ImportError:
@@ -17,16 +16,15 @@ except ImportError:
else:
# now we know dulwich is available, to do futher imports
from git.db.dulwich.complex import DulwichCompatibilityGitDB as DulwichDB
-
-#END handle imports
+
+# END handle imports
+
class TestDulwichDBBase(RepoBase):
__metaclass__ = DulwichRequiredMetaMixin
RepoCls = DulwichDB
-
+
@needs_dulwich_or_skip
@with_rw_repo('HEAD', bare=False)
def test_basics(self, rw_repo):
db = DulwichDB(rw_repo.working_tree_dir)
-
-