Commit graph

79 commits

Author SHA1 Message Date
David Lord
8853be019a remove BaseRequest and BaseResponse 2021-01-29 10:52:48 -08:00
David Lord
f8aec17365 Merge pull request #3704 from jackwardell/no-self-required
swapping self.assert_equal for assert
2020-07-28 07:10:13 -07:00
jackwardell
5653184b1f swapping self.assert_equal for assert
self.assert_equal is not in a class and is ambiguous. Beginners might copy and paste this example and not understand it.
2020-07-28 14:23:00 +01:00
David Lord
1de5873d66 remove unused ref directives
replace page refs with doc directives
2020-04-04 12:57:14 -07:00
David Lord
f5038c4c39 f-strings everywhere 2020-04-04 12:10:00 -07:00
David Lord
f6325085ae Merge remote-tracking branch 'origin/1.1.x' 2020-04-02 11:56:30 -07:00
gutianci
1859a5fd2c docs: testing.rst function def missing colon 2020-03-05 18:31:21 +08:00
Nathan McKinley-Pace
992e20b021 Update testing.rst
It now describes how to install flaskr using pip so that all tests pass.
2019-09-02 11:31:34 -04:00
David Lord
ff0c92a1c7 Merge branch '1.0.x' 2019-06-23 16:57:52 -07:00
David Lord
363741ec69 fix docks linkcheck 2019-06-23 15:37:51 -07:00
Jon S. Stumpf
4dc9c68d19 address flake8 issues 2019-06-01 06:31:35 -07:00
David Lord
797fb5f64b Merge pull request #3240 from ultimecia7/docfix
Fix testing documentation to demonstrate using test client with teardown
2019-05-31 14:06:54 -04:00
ultimecia7
ffdc3ff595 Fix testing documentation to demonstrate using test client with teardown 2019-05-31 13:18:54 -04:00
David Lord
d37b992a54 Merge branch '1.0.x' 2019-05-17 11:13:08 -07:00
brunoais
b7bac12723 More explicit explanation: session testing
Use a more explicit explanation on how to write code to test own code
when sessions are needed.
The previous code was not fully explicit that the client is supposed
to be called after the session transaction and not during.
2019-05-16 18:07:18 -07:00
David Baumgold
3b6d1ecd24 fix RST line too long 2019-05-06 11:11:32 -04:00
Cyker Way
7a09ae3648 Fix inconsistency in testing doc. 2018-10-29 20:53:39 -04:00
Grey Li
95008cf43d Add prefix for all commands in documentation (#2877)
* Add prefix for commands in docs

* Add prefix for commands in example's README
2018-09-09 17:41:56 +09:00
Grey Li
96b5ddc9ed Remove unnecessary period in documentation 2018-06-17 12:12:37 +08:00
David Lord
a894586ba8 add javascript ajax example 2018-04-12 11:06:02 -07:00
David Lord
e29bd92c52 rewrite tutorial docs and example 2018-04-09 00:53:25 -07:00
David Lord
8d5c870199 add test_cli_runner for testing app.cli commands 2018-02-19 15:34:46 -08:00
David Lord
b6dff4fabe document testing cli commands 2018-01-28 18:48:39 -08:00
David Lord
ca0dbc87a9 clean up JSON code and docs 2017-06-04 11:44:00 -07:00
David Lord
1ed4062f8f Merge remote-tracking branch 'remotes/origin/master' into json-mixin 2017-06-04 09:42:39 -07:00
bovarysme
34a921ca6e Fix a small oversight in the testing docs 2017-05-23 22:22:16 +02:00
David Lord
739f7fde70 Update testing.rst 2017-05-23 11:50:14 -07:00
Neil Grey
b7b9fdf778 For Issue #2286: Updating test_flaskr to use yield inside fixture 2017-05-22 18:22:08 -07:00
Neil Grey
2318b4e1ae For Issue #2286: Fixing indenting of test_login_logout 2017-05-22 17:42:30 -07:00
Neil Grey
eb8e4e0537 For Issue #2286: Replaces references to unittest in the documentation with pytest 2017-05-22 17:36:55 -07:00
David Lord
90aeed0012 Merge pull request #2191 from SergioDS/master
Updated documentation for being able to use init_db method
2017-04-21 11:45:16 -07:00
David Lord
0f514cea8f use app.testing property instead of config 2017-04-13 16:32:44 -07:00
accraze
f3f4aa325b Added missing testing config
fixes #1302
2017-04-13 16:27:58 -07:00
Sergio Díaz Sánchez
6877025c8d Updated documentation for being able to use init_db method 2017-02-28 00:13:45 +01:00
teichopsia-
92d9c0122c Update testing.rst (#1987)
Python 3.4.2
TypeError: Type str doesn't support the buffer API
2016-08-19 19:01:13 -07:00
Adam Byrtek
f5f46f56e6 Documentation updates 2016-08-19 21:21:43 +02:00
Adam Byrtek
9d6ebde480 Update documentation to use the getter only once 2016-08-19 21:20:59 +02:00
Adam Byrtek
0d833ce4ce Updates after code review 2016-08-19 21:19:33 +02:00
Adam Byrtek
307a7f5758 Update the testing documentation 2016-08-19 21:19:17 +02:00
Adam Byrtek
6aaecb7d43 Remove redundant cache flag 2016-08-19 21:19:17 +02:00
José Carlos García
fcb3c0a4fe Change to Pallets project
* Update CHANGES

* Update CONTRIBUTING.rst

* Update setup.py

* Update tox.ini

* Update extensions.rst

* Update security.rst

* Update installation.rst

* Update testing.rst

* Update upgrading.rst

* Update sidebarintro.html

* Update jquery.rst

* Update dbcon.rst

* Update index.rst
2016-04-03 23:11:38 +02:00
bagratte
de4e0a553c minor revision of documentation. 2016-04-01 23:12:25 +02:00
Vincent Driessen
d80dd731d2 Remove the word trivially here
A lot of things are trivial, or debatably trivial, but this is not one of them :)
2015-06-10 10:58:49 +02:00
Winston Kouch
bac8e558a2 Add import flask module required to run code on Other Testing Tricks 2015-03-12 23:32:08 -04:00
Jochen Kupperschmidt
cb4d93c140 Added missing import.
As this specific code block lists imports in general and an import from the `flask` package specifically, it should also include `g` for the sake of completeness.
2015-01-13 03:03:14 +01:00
Markus Unterwaditzer
de3de8d6bf Fix #1298 2014-12-30 12:08:17 +01:00
Nic Young
5281e04e51 Fix grammar in testing doc. 2014-12-29 22:11:17 -07:00
defuz
62019cf705 docs: `with, for, self` 2014-11-05 07:39:54 +03:00
defuz
b5c9ad68dd docs: :file:app.py, :file:yourapp/templates 2014-11-05 06:45:22 +03:00
defuz
6c894b2274 docs: http method names like `GET and POST` 2014-11-05 06:13:01 +03:00