Skip to content

Commit

Permalink
Add integration test for a relative submodule with an explicit base
Browse files Browse the repository at this point in the history
  • Loading branch information
evanrittenhouse committed Feb 14, 2023
1 parent a288ba3 commit ffe3a92
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/integration/test_utils_vcs_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,19 @@ def test_git_clone_clones_submodules_with_relative_urls(source_url: str) -> None
assert len(list(submodule_package_directory.glob("*"))) > 1


def test_git_clone_clones_submodules_with_relative_urls_and_explicit_base(
source_url: str,
) -> None:
with Git.clone(url=source_url, branch="relative_submodule") as repo:
submodule_package_directory = (
Path(repo.path) / "submodules" / "relative-url-submodule-with-base"
)

assert submodule_package_directory.exists()
assert submodule_package_directory.joinpath("README.md").exists()
assert len(list(submodule_package_directory.glob("*"))) > 1


def test_system_git_fallback_on_http_401(
mocker: MockerFixture,
source_url: str,
Expand Down

0 comments on commit ffe3a92

Please sign in to comment.