summaryrefslogtreecommitdiff
path: root/docs/narr/testing.rst
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2016-12-27 03:00:09 -0800
committerSteve Piercy <web@stevepiercy.com>2016-12-27 03:00:09 -0800
commitfb77c9006eda49c144203a1474fcbeed2fea55cb (patch)
tree5c1f00658b2ba289d3e2348571c5b4492a1cfdf1 /docs/narr/testing.rst
parentaf098b66c60b2451d6e9e932d5b4bddfaa63f323 (diff)
downloadpyramid-fb77c9006eda49c144203a1474fcbeed2fea55cb.tar.gz
pyramid-fb77c9006eda49c144203a1474fcbeed2fea55cb.tar.bz2
pyramid-fb77c9006eda49c144203a1474fcbeed2fea55cb.zip
quick_tutorial - refactor MyProject/myproject for cookiecutters
Diffstat (limited to 'docs/narr/testing.rst')
-rw-r--r--docs/narr/testing.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/narr/testing.rst b/docs/narr/testing.rst
index 354a462d4..406383bbd 100644
--- a/docs/narr/testing.rst
+++ b/docs/narr/testing.rst
@@ -370,11 +370,11 @@ coverage reports.
Regardless of which testing :term:`package` you use, be sure to add a
``tests_require`` dependency on that package to your application's ``setup.py``
-file. Using the project ``MyProject`` generated by the starter scaffold as
+file. Using the project ``myproject`` generated by the starter cookiecutter as
described in :doc:`project`, we would insert the following code immediately
-following the ``requires`` block in the file ``MyProject/setup.py``.
+following the ``requires`` block in the file ``myproject/setup.py``.
-.. literalinclude:: MyProject/setup.py
+.. literalinclude:: myproject/setup.py
:language: python
:linenos:
:lines: 11-22
@@ -383,7 +383,7 @@ following the ``requires`` block in the file ``MyProject/setup.py``.
Remember to change the dependency.
-.. literalinclude:: MyProject/setup.py
+.. literalinclude:: myproject/setup.py
:language: python
:linenos:
:lines: 40-44
@@ -401,14 +401,14 @@ In your ``MyPackage`` project, your :term:`package` is named ``myproject``
which contains a ``views`` module, which in turn contains a :term:`view`
function ``my_view`` that returns an HTML body when the root URL is invoked:
- .. literalinclude:: MyProject/myproject/views.py
+ .. literalinclude:: myproject/myproject/views.py
:linenos:
:language: python
The following example functional test demonstrates invoking the above
:term:`view`:
- .. literalinclude:: MyProject/myproject/tests.py
+ .. literalinclude:: myproject/myproject/tests.py
:linenos:
:pyobject: FunctionalTests
:language: python