Skip to content
Snippets Groups Projects
Commit 0464da89 authored by Florian Bruhin's avatar Florian Bruhin
Browse files

black

parent af79a811
No related branches found
No related tags found
No related merge requests found
Pipeline #247334 passed
......@@ -325,11 +325,7 @@ class Repo:
raise # pragma: no cover
def clone_to(
self,
dest_path: pathlib.Path,
*,
bare: bool = False,
mirror: bool = False
self, dest_path: pathlib.Path, *, bare: bool = False, mirror: bool = False
) -> Repo:
"""Clone the current repo via 'git clone' and return the clone."""
cmd = ["clone"]
......
......@@ -109,7 +109,9 @@ def test_git_logging(dummy_repo: git.Repo, caplog: pytest.LogCaptureFixture) ->
assert caplog.messages[1].startswith("stdout:\ngit version")
def test_git_logging_long_output(dummy_repo: git.Repo, caplog: pytest.LogCaptureFixture) -> None:
def test_git_logging_long_output(
dummy_repo: git.Repo, caplog: pytest.LogCaptureFixture
) -> None:
with caplog.at_level(logging.DEBUG):
dummy_repo.git("--help")
......@@ -257,7 +259,9 @@ def test_init_branch(tmp_path: pathlib.Path) -> None:
@pytest.mark.parametrize("bare", [True, False])
@pytest.mark.parametrize("mirror", [True, False])
def test_clone(repo: git.Repo, tmp_path: pathlib.Path, bare: bool, mirror: bool) -> None:
def test_clone(
repo: git.Repo, tmp_path: pathlib.Path, bare: bool, mirror: bool
) -> None:
clone_path = tmp_path / "clone"
clone = repo.clone_to(clone_path, bare=bare, mirror=mirror)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment