GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — GitPython/test/test_backend_selection.py at main · gitpython-developers/GitPython Expand file tree/ Copy pathtest_backend_selection.pyMore file actions 28 lines (22 loc) · 857 Bytes / Copy pathtest_backend_selection.pyFile metadata and controls28 lines (22 loc) · 857 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 """Fixture tooling is available independently of the selected backend.""" import os import subprocess import sys import pytest @pytest.mark.parametrize("backend", ["cli", "gix"]) def test_backend_selection_leaves_fixture_tools_available(backend): result = subprocess.check_output( [sys.executable, "-c", "from git import _backend; from gix import testtools; print(_backend.name)"], env={**os.environ, "GIT_PYTHON_BACKEND": backend}, text=True, ) assert result.strip() == backend def test_unknown_backend_is_rejected(): result = subprocess.run( [sys.executable, "-c", "import git"], env={**os.environ, "GIT_PYTHON_BACKEND": "unknown"}, capture_output=True, text=True, ) assert result.returncode != 0 assert "GIT_PYTHON_BACKEND must be 'cli' or 'gix'" in result.stderr |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |