summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/tests.rst
diff options
context:
space:
mode:
authorMichael Merickel <github@m.merickel.org>2024-02-07 21:02:40 -0700
committerGitHub <noreply@github.com>2024-02-07 21:02:40 -0700
commit03e2e439f263aca7d4efa8173c0bbc4aacb8a3c2 (patch)
treea052858496fce4e03b16098cc11e9b8a0aba1617 /docs/tutorials/wiki2/tests.rst
parent53eb7e7cc6b7bfdedb4df4821af66619bebf909c (diff)
parent222386e96a1711b6215f64ea809a9f4a7a8c2202 (diff)
downloadpyramid-03e2e439f263aca7d4efa8173c0bbc4aacb8a3c2.tar.gz
pyramid-03e2e439f263aca7d4efa8173c0bbc4aacb8a3c2.tar.bz2
pyramid-03e2e439f263aca7d4efa8173c0bbc4aacb8a3c2.zip
Merge pull request #3747 from Pylons/wiki2-sqla-2.0
upgrade the wiki2 tutorial with the new cookiecutter updates
Diffstat (limited to 'docs/tutorials/wiki2/tests.rst')
-rw-r--r--docs/tutorials/wiki2/tests.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/tutorials/wiki2/tests.rst b/docs/tutorials/wiki2/tests.rst
index dce14cf9b..62b436401 100644
--- a/docs/tutorials/wiki2/tests.rst
+++ b/docs/tutorials/wiki2/tests.rst
@@ -20,21 +20,21 @@ The test module would have the same name with the prefix ``test_``.
The harness consists of the following setup:
-- ``pytest.ini`` - controls basic ``pytest`` config 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's 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 fixtures are explained in more detail below.
-
+- 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.
Session-scoped test fixtures
----------------------------