summaryrefslogtreecommitdiff
path: root/git/test/db/dulwich/lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/test/db/dulwich/lib.py')
-rw-r--r--git/test/db/dulwich/lib.py8
1 files changed, 5 insertions, 3 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]