summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/tests.rst
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2024-02-07 20:52:05 -0700
committerGitHub <noreply@github.com>2024-02-07 20:52:05 -0700
commit53eb7e7cc6b7bfdedb4df4821af66619bebf909c (patch)
treec0244a2971d7fead848359f3d83fe158f8b509ad /docs/tutorials/wiki/tests.rst
parent151ebdc003a3a372017fdf73c14fbebcc550535d (diff)
parentfea81c0cf25402c7088b002be7a1672d29841345 (diff)
downloadpyramid-53eb7e7cc6b7bfdedb4df4821af66619bebf909c.tar.gz
pyramid-53eb7e7cc6b7bfdedb4df4821af66619bebf909c.tar.bz2
pyramid-53eb7e7cc6b7bfdedb4df4821af66619bebf909c.zip
Merge pull request #3751 from Pylons/tseaver-refresh-zodb-tutorial
docs: refresh ZODB wiki tutorial
Diffstat (limited to 'docs/tutorials/wiki/tests.rst')
-rw-r--r--docs/tutorials/wiki/tests.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/tutorials/wiki/tests.rst b/docs/tutorials/wiki/tests.rst
index 231945c9a..70eb3c1da 100644
--- a/docs/tutorials/wiki/tests.rst
+++ b/docs/tutorials/wiki/tests.rst
@@ -19,19 +19,19 @@ The test module would have the same name with the prefix ``test_``.
The harness consists of the following setup:
-- ``pytest.ini`` - controls basic ``pytest`` configuration, including where to find the tests.
+- The ``project.optional-dependencies`` stanza of ``pyproject.toml`` - controls the dependencies installed when testing.
+ When the list is changed, it is necessary to re-run ``$VENV/bin/pip install -e ".[testing]"`` to ensure the new dependencies are installed.
+
+- The ``tool.pytest.ini_options`` stanza of ``pyproject.toml`` controls basic ``pytest`` configuration, including where to find the tests.
We have configured ``pytest`` to search for tests in the application package and in the ``tests`` package.
-- ``.coveragerc`` - controls coverage config.
+- The ``tool.coverage.run`` stanza of ``pyproject.toml`` controls coverage config.
In our setup, it works with the ``pytest-cov`` plugin that we use via the ``--cov`` options to the ``pytest`` command.
-- ``testing.ini`` - a mirror of ``development.ini`` and ``production.ini`` that contains settings used for executing the test suite.
+- The ``testing.ini`` file is a mirror of ``development.ini`` and ``production.ini`` that contains settings used for executing the test suite.
Most importantly, it contains the database connection information used by tests that require the database.
-- ``tests_require`` in ``setup.py`` - controls the dependencies installed when testing.
- When the list is changed, it is necessary to re-run ``$VENV/bin/pip install -e ".[testing]"`` to ensure the new dependencies are installed.
-
-- ``tests/conftest.py`` - the core fixtures available throughout our tests.
+- The ``tests/conftest.py`` file defines the core fixtures available throughout our tests.
The fixtures are explained in more detail in the following sections.
Open ``tests/conftest.py`` and follow along.