| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,9 +11,12 @@ | |||
| 11 | 11 | import os | |
| 12 | 12 | import pathlib | |
| 13 | 13 | import pickle | |
| 14 | + import sys | ||
| 14 | 15 | import tempfile | |
| 15 | 16 | from unittest import mock, skipIf, SkipTest | |
| 16 | 17 | ||
| 18 | + import pytest | ||
| 19 | + | ||
| 17 | 20 | from git import ( | |
| 18 | 21 | InvalidGitRepositoryError, | |
| 19 | 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 | + ) | ||
| 906 | 914 | def test_submodules(self): | |
| 907 | 915 | self.assertEqual(len(self.rorepo.submodules), 1) # non-recursive | |
| 908 | 916 | self.assertGreaterEqual(len(list(self.rorepo.iter_submodules())), 2) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments