From 48cb955e00c5b0e694b53d915f2032c3d6d526ff Mon Sep 17 00:00:00 2001 From: bswck Date: Sun, 4 Feb 2024 02:10:25 +0100 Subject: [PATCH] Auto-use `git_url_substitutions` --- conftest.py | 2 +- jaraco/develop/git.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/conftest.py b/conftest.py index 1fa9dc8..0c4b5b2 100644 --- a/conftest.py +++ b/conftest.py @@ -8,7 +8,7 @@ def pytest_configure(): os.environ['GITHUB_TOKEN'] = 'abc' -@pytest.fixture +@pytest.fixture(autouse=True) def git_url_substitutions(fake_process): cmd = ['git', 'config', '--get-regexp', r'url\..*\.insteadof'] stdout = textwrap.dedent( diff --git a/jaraco/develop/git.py b/jaraco/develop/git.py index 649bf63..81e3ab2 100644 --- a/jaraco/develop/git.py +++ b/jaraco/develop/git.py @@ -16,7 +16,6 @@ class URLScheme: """ - >>> getfixture('git_url_substitutions') >>> scheme = URLScheme.lookup('gh://foo/bar') >>> scheme.resolve('gh://foo/bar') 'https://github.com/foo/bar'