summaryrefslogtreecommitdiff
path: root/docs/quick_tutorial/unit_testing.rst
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2018-10-09 08:20:26 -0700
committerGitHub <noreply@github.com>2018-10-09 08:20:26 -0700
commit05915720f97df868e0b7dcff6e9b8eed964b8a90 (patch)
tree88bddf332ba5df5fb9822e7615e0652e4f41fa09 /docs/quick_tutorial/unit_testing.rst
parent045951c2160c3431a319c9e662c34a6685cab007 (diff)
parentb15a06346148f6095adf17893490175abc95a494 (diff)
downloadpyramid-05915720f97df868e0b7dcff6e9b8eed964b8a90.tar.gz
pyramid-05915720f97df868e0b7dcff6e9b8eed964b8a90.tar.bz2
pyramid-05915720f97df868e0b7dcff6e9b8eed964b8a90.zip
Merge pull request #3380 from stevepiercy/docs-quick-tutorial-update
Revise Quick Tutorial `setup.py`s
Diffstat (limited to 'docs/quick_tutorial/unit_testing.rst')
-rw-r--r--docs/quick_tutorial/unit_testing.rst11
1 files changed, 3 insertions, 8 deletions
diff --git a/docs/quick_tutorial/unit_testing.rst b/docs/quick_tutorial/unit_testing.rst
index 2e58ee8d9..654925347 100644
--- a/docs/quick_tutorial/unit_testing.rst
+++ b/docs/quick_tutorial/unit_testing.rst
@@ -54,14 +54,14 @@ Steps
.. literalinclude:: unit_testing/setup.py
:language: python
:linenos:
- :emphasize-lines: 11-15
+ :emphasize-lines: 15
#. Install our project and its newly added dependency.
- Note that we use the extra specifier ``[test]`` to install testing requirements.
+ Note that we use the extra specifier ``[dev]`` to install testing requirements for development and surround it and the period with double quote marks.
.. code-block:: bash
- $VENV/bin/pip install -e .[test]
+ $VENV/bin/pip install -e ".[dev]"
#. Now we write a simple unit test in ``unit_testing/tutorial/tests.py``:
@@ -102,11 +102,6 @@ Note that our use of ``pyramid.testing.setUp()`` and
necessary when your test needs to make use of the ``config`` object (it's a
Configurator) to add stuff to the configuration state before calling the view.
-Finally we've introduced the concept of :term:`Setuptools` extras.
-These are optional or recommended features that may be installed with an "extras" specifier.
-The specifier is the name of a key in a Python dictionary, and is surrounded by square brackets when invoked on the command line.
-The value for the key is a Python list of dependencies.
-
Extra credit
============