Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54bae76 commit 0eda0a5Copy full SHA for 0eda0a5
test/test_repo.py
@@ -11,9 +11,12 @@
11
import os
12
import pathlib
13
import pickle
14
+import sys
15
import tempfile
16
from unittest import mock, skipIf, SkipTest
17
18
+import pytest
19
+
20
from git import (
21
InvalidGitRepositoryError,
22
Repo,
@@ -903,6 +906,11 @@ def test_repo_odbtype(self):
903
906
target_type = GitCmdObjectDB
904
907
self.assertIsInstance(self.rorepo.odb, target_type)
905
908
909
+ @pytest.mark.xfail(
910
+ sys.platform == "cygwin",
911
+ reason="Cygwin GitPython can't find submodule SHA",
912
+ raises=ValueError
913
+ )
914
def test_submodules(self):
915
self.assertEqual(len(self.rorepo.submodules), 1) # non-recursive
916
self.assertGreaterEqual(len(list(self.rorepo.iter_submodules())), 2)
0 commit comments