ci: vcs imports for pytest
This commit is contained in:
parent
4834a98466
commit
910735def7
1 changed files with 11 additions and 1 deletions
|
|
@ -3,9 +3,19 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
sys.stderr.write("gitpython is not installed, skipping git service\n")
|
sys.stderr.write("Cannot import Git\n")
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
|
|
||||||
|
|
||||||
|
class Repo:
|
||||||
|
@staticmethod
|
||||||
|
def clone_from(*args):
|
||||||
|
raise RuntimeError("git lib not imported")
|
||||||
|
|
||||||
|
|
||||||
|
class Remote:
|
||||||
|
pass
|
||||||
|
|
||||||
from injectable import injectable
|
from injectable import injectable
|
||||||
|
|
||||||
from karl.config import GitConfig, get_settings
|
from karl.config import GitConfig, get_settings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue