diff --git a/content/master/guides/write-a-composition-function-in-python.md b/content/master/guides/write-a-composition-function-in-python.md
index 58aad756..b4aa9618 100644
--- a/content/master/guides/write-a-composition-function-in-python.md
+++ b/content/master/guides/write-a-composition-function-in-python.md
@@ -451,21 +451,26 @@ if __name__ == "__main__":
```
{{}}
-Run the unit tests using `hatch run`:
+Run the unit tests using `hatch test`:
```shell {copy-lines="1"}
-hatch run test:unit
-.
-----------------------------------------------------------------------
-Ran 1 test in 0.003s
+❯ hatch test
+================================== test session starts ==================================
+platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
+rootdir: ./function-template-python
+configfile: pyproject.toml
+plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
+collected 1 item
-OK
+tests/test_fn.py . [100%]
+
+=================================== 1 passed in 0.26s ===================================
```
{{}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
-to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
+to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{}}
diff --git a/content/v1.17/guides/write-a-composition-function-in-python.md b/content/v1.17/guides/write-a-composition-function-in-python.md
index 58aad756..b4aa9618 100644
--- a/content/v1.17/guides/write-a-composition-function-in-python.md
+++ b/content/v1.17/guides/write-a-composition-function-in-python.md
@@ -451,21 +451,26 @@ if __name__ == "__main__":
```
{{}}
-Run the unit tests using `hatch run`:
+Run the unit tests using `hatch test`:
```shell {copy-lines="1"}
-hatch run test:unit
-.
-----------------------------------------------------------------------
-Ran 1 test in 0.003s
+❯ hatch test
+================================== test session starts ==================================
+platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
+rootdir: ./function-template-python
+configfile: pyproject.toml
+plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
+collected 1 item
-OK
+tests/test_fn.py . [100%]
+
+=================================== 1 passed in 0.26s ===================================
```
{{}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
-to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
+to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{}}
diff --git a/content/v1.18/guides/write-a-composition-function-in-python.md b/content/v1.18/guides/write-a-composition-function-in-python.md
index 58aad756..4657e462 100644
--- a/content/v1.18/guides/write-a-composition-function-in-python.md
+++ b/content/v1.18/guides/write-a-composition-function-in-python.md
@@ -453,19 +453,26 @@ if __name__ == "__main__":
Run the unit tests using `hatch run`:
+Run the unit tests using `hatch test`:
+
```shell {copy-lines="1"}
-hatch run test:unit
-.
-----------------------------------------------------------------------
-Ran 1 test in 0.003s
+❯ hatch test
+================================== test session starts ==================================
+platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
+rootdir: ./function-template-python
+configfile: pyproject.toml
+plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
+collected 1 item
+
+tests/test_fn.py . [100%]
-OK
+=================================== 1 passed in 0.26s ===================================
```
{{}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
-to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
+to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{}}
diff --git a/content/v1.19/guides/write-a-composition-function-in-python.md b/content/v1.19/guides/write-a-composition-function-in-python.md
index 58aad756..b4aa9618 100644
--- a/content/v1.19/guides/write-a-composition-function-in-python.md
+++ b/content/v1.19/guides/write-a-composition-function-in-python.md
@@ -451,21 +451,26 @@ if __name__ == "__main__":
```
{{}}
-Run the unit tests using `hatch run`:
+Run the unit tests using `hatch test`:
```shell {copy-lines="1"}
-hatch run test:unit
-.
-----------------------------------------------------------------------
-Ran 1 test in 0.003s
+❯ hatch test
+================================== test session starts ==================================
+platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
+rootdir: ./function-template-python
+configfile: pyproject.toml
+plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
+collected 1 item
-OK
+tests/test_fn.py . [100%]
+
+=================================== 1 passed in 0.26s ===================================
```
{{}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
-to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
+to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{}}
diff --git a/content/v2.0-preview/guides/write-a-composition-function-in-python.md b/content/v2.0-preview/guides/write-a-composition-function-in-python.md
index 24ae3825..386b0446 100644
--- a/content/v2.0-preview/guides/write-a-composition-function-in-python.md
+++ b/content/v2.0-preview/guides/write-a-composition-function-in-python.md
@@ -451,21 +451,26 @@ if __name__ == "__main__":
```
{{}}
-Run the unit tests using `hatch run`:
+Run the unit tests using `hatch test`:
```shell {copy-lines="1"}
-hatch run test:unit
-.
-----------------------------------------------------------------------
-Ran 1 test in 0.003s
+❯ hatch test
+================================== test session starts ==================================
+platform darwin -- Python 3.12.8, pytest-8.3.5, pluggy-1.5.0
+rootdir: ./function-template-python
+configfile: pyproject.toml
+plugins: rerunfailures-14.0, mock-3.14.0, xdist-3.6.1
+collected 1 item
-OK
+tests/test_fn.py . [100%]
+
+=================================== 1 passed in 0.26s ===================================
```
{{}}
[Hatch](https://hatch.pypa.io/) is a Python build tool. It builds Python
artifacts like wheels. It also manages virtual environments, similar
-to `virtualenv` or `venv`. The `hatch run` command creates a virtual environment
+to `virtualenv` or `venv`. The `hatch test` command creates a virtual environment
and runs a command in that environment.
{{}}