update /docs/testing.rst based on new tutorial tests #3606
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update the /docs/testing.rst
Update the
/docs/testing.rst
. Remove the incompatible code snippet like this one since theflaskr
application has been rewritten and does not contain aflaskr
object.a. Sections removed from /docs/testing.rst:
b. Replaced with:
c. Added Section:
Most description is directly taken from
/docs/tutorial/tests.rst
since @davidism mentioned here that the tutorial is update to date;Relevant issues: #2831, #3545, and #2833 .
Possible overlaps: #3349 , #3311 .
NOTE: updating the testing docs seems like a long-term job and would take some effort to entirely make the testing docs compatible with the current flask version; I will continue study and update more outdated contents; Meanwhile, any suggestions and help are welcome! :)