Skip to content

Commit be0f675

Browse files
Byroncodex
andcommitted
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 <codex@openai.com>
1 parent fe74a6f commit be0f675

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎doc/source/intro.rst‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,16 @@ and cloned using::
9595

9696
$ git clone https://github.com/gitpython-developers/GitPython git-python
9797

98-
Finally verify the installation by running unit tests::
98+
To run the test suite, change into the checkout and install the test dependencies.
99+
The tests require Python 3.11 or later, Git 2.52 or later, and Bash. Select a
100+
backend before running pytest::
99101

100-
$ python -m unittest
102+
$ cd git-python
103+
$ python -m pip install -e ".[test]"
104+
$ GIT_PYTHON_BACKEND=cli python -m pytest
105+
106+
See `CONTRIBUTING.md <https://github.com/gitpython-developers/GitPython/blob/main/CONTRIBUTING.md>`_
107+
for more information about running and contributing tests.
101108

102109
Questions and Answers
103110
=====================

0 commit comments

Comments
 (0)