From 2ec150af02de076a2e64046fef634d873140ddce Mon Sep 17 00:00:00 2001 From: Nathan McKinley-Pace Date: Mon, 2 Sep 2019 11:31:34 -0400 Subject: [PATCH] Update testing.rst It now describes how to install flaskr using pip so that all tests pass. --- docs/testing.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/testing.rst b/docs/testing.rst index 01eef000..2a00d211 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -29,6 +29,9 @@ First, we need an application to test; we will use the application from the :ref:`tutorial`. If you don't have that application yet, get the source code from :gh:`the examples `. +So that we can import the module ``flaskr`` correctly, we need to run +``pip install -e .`` in the folder ``tutorial``. + The Testing Skeleton -------------------- @@ -46,7 +49,7 @@ the application for testing and initializes a new database:: import pytest - from flaskr import flaskr + from flaskr import create_app @pytest.fixture