ci: vcs imports for pytest

This commit is contained in:
Piotr Dec 2026-07-12 23:23:51 +02:00
parent 4834a98466
commit 910735def7
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0

View file

@ -3,9 +3,19 @@ try:
except ImportError:
import sys
sys.stderr.write("gitpython is not installed, skipping git service\n")
sys.stderr.write("Cannot import Git\n")
sys.stderr.flush()
class Repo:
@staticmethod
def clone_from(*args):
raise RuntimeError("git lib not imported")
class Remote:
pass
from injectable import injectable
from karl.config import GitConfig, get_settings