summaryrefslogtreecommitdiff
path: root/git/test/db/dulwich/lib.py
blob: a1110ffa98d66a4fcd64ed08f5c8db4ec7a81d1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""dulwich specific utilities, as well as all the default ones"""

from git.test.lib import *

#{ Decoorators

def needs_dulwich_or_skip(func):
	"""Skip this test if we have no dulwich - print warning"""
	return needs_module_or_skip('dulwich')(func)

#}END decorators

#{ MetaClasses

class DulwichRequiredMetaMixin(InheritedTestMethodsOverrideWrapperMetaClsAutoMixin):
	decorator = [needs_dulwich_or_skip]

#} END metaclasses