◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
23 changes: 23 additions & 0 deletions .github/workflows/alpine-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,29 @@ jobs:
. .venv/bin/activate
pip install '.[test]'

- name: Show version and platform information
run: |
. .venv/bin/activate
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/cygwin-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
run: |
git config --global --add safe.directory "$(pwd)"
git config --global --add safe.directory "$(pwd)/.git"
git config --global core.autocrlf false

- name: Prepare this repo for tests
Expand Down Expand Up @@ -80,6 +82,60 @@ jobs:
run: |
pip install '.[test]'

- name: Show version and platform information
run: |
uname -a
58 changes: 58 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,64 @@ jobs:
run: |
pip install '.[test]'

- name: Show version and platform information
run: |
uname -a
Expand Down
8 changes: 0 additions & 8 deletions test/test_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
import gc
import os
import os.path
import sys

import pytest

from test.lib import TestBase
from test.lib.helper import with_rw_directory
Expand Down Expand Up @@ -478,11 +475,6 @@ def test_references_and_objects(self, rw_dir):

repo.git.clear_cache()

@pytest.mark.xfail(
sys.platform == "cygwin",
reason="Cygwin GitPython can't find SHA for submodule",
raises=ValueError,
)
def test_submodules(self):
# [1-test_submodules]
repo = self.rorepo
Expand Down
131 changes: 131 additions & 0 deletions test/test_fixture_health.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
5 changes: 0 additions & 5 deletions test/test_repo.py
Original file line number Diff line number Diff line change
@@ -877,11 +877,6 @@ def test_repo_odbtype(self):
target_type = GitCmdObjectDB
self.assertIsInstance(self.rorepo.odb, target_type)

@pytest.mark.xfail(
sys.platform == "cygwin",
reason="Cygwin GitPython can't find submodule SHA",
raises=ValueError,
)
def test_submodules(self):
self.assertEqual(len(self.rorepo.submodules), 1) # non-recursive
self.assertGreaterEqual(len(list(self.rorepo.iter_submodules())), 2)
Expand Down
9 changes: 2 additions & 7 deletions test/test_submodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,11 +480,6 @@ def test_base_rw(self, rwrepo):
def test_base_bare(self, rwrepo):
self._do_base_tests(rwrepo)

@pytest.mark.xfail(
sys.platform == "cygwin",
reason="Cygwin GitPython can't find submodule SHA",
raises=ValueError,
)
@pytest.mark.xfail(
HIDE_WINDOWS_KNOWN_ERRORS,
reason=(
Expand Down Expand Up @@ -513,9 +508,9 @@ def test_root_module(self, rwrepo):
with rm.config_writer():
pass

# Deep traversal gitdb / async.
rsmsp = [sm.path for sm in rm.traverse()]
assert len(rsmsp) >= 2 # gitdb and async [and smmap], async being a child of gitdb.

# Cannot set the parent commit as root module's path didn't exist.
self.assertRaises(ValueError, rm.set_parent_commit, "HEAD")
Expand Down
Loading
Toggle all file notes Toggle all file annotations