From be0f67562ddee5c822eb7f1952fb34752b0b9468 Mon Sep 17 00:00:00 2001 From: Byron Date: Sun, 22 Nov 2026 14:32:46 +0100 Subject: [PATCH] docs: align source-checkout test instructions with pytest Update that section to enter the checkout, install the `test` extra, select the CLI backend, and invoke pytest. State the test-suite prerequisites separately from the package's supported Python versions, and link to the contributor guide for further details. Co-authored-by: 0x1A6C1A9Y <8345456+0x1A6C1A9Y@users.noreply.github.com> Co-authored-by: GPT --- doc/source/intro.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/source/intro.rst b/doc/source/intro.rst index 1faa3f922..9261c157d 100644 --- a/doc/source/intro.rst +++ b/doc/source/intro.rst @@ -95,9 +95,16 @@ and cloned using:: $ git clone https://github.com/gitpython-developers/GitPython git-python -Finally verify the installation by running unit tests:: +To run the test suite, change into the checkout and install the test dependencies. +The tests require Python 3.11 or later, Git 2.52 or later, and Bash. Select a +backend before running pytest:: - $ python -m unittest + $ cd git-python + $ python -m pip install -e ".[test]" + $ GIT_PYTHON_BACKEND=cli python -m pytest + +See `CONTRIBUTING.md `_ +for more information about running and contributing tests. Questions and Answers =====================