Skip to content

Commit

Permalink
debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shcheklein committed Sep 29, 2024
1 parent 42cc27a commit 5ff170d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,12 @@ def test_iter_remote_refs_proxy_server(proxy_server: str, scm: Git, tmp_dir: Tmp
url = "https://github.com/iterative/dvcyaml-schema"
git = GitBackends.DEFAULT["dulwich"](".")

p = Path(os.environ["HOME"]) / ".gitconfig"
import sys

if sys.platform == "win32":
p = Path(os.environ["USERPROFILE"]) / ".gitconfig"
else:
p = Path(os.environ["HOME"]) / ".gitconfig"
p.write_text(BAD_PROXY_CONFIG)
with pytest.raises(Exception): # noqa: PT011, B017
list(git.iter_remote_refs(url))
Expand All @@ -1006,7 +1011,6 @@ def test_iter_remote_refs_proxy_server(proxy_server: str, scm: Git, tmp_dir: Tmp


@pytest.mark.skip_git_backend("gitpython")
@pytest.mark.allow_hosts(["127.0.0.1", "::1"])
def test_fetch_refspecs_proxy_server(
proxy_server: str, scm: Git, git: Git, tmp_dir: TmpDir
):
Expand Down

0 comments on commit 5ff170d

Please sign in to comment.