Commit graph

66 commits

Author SHA1 Message Date
David Lord
05a4e15ee4
Merge branch '1.0.x' 2019-05-17 11:13:08 -07:00
brunoais
6142aa64ae
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
6606a4a238 fix RST line too long 2019-05-06 11:11:32 -04:00
Cyker Way
43e2d7518d Fix inconsistency in testing doc. 2018-10-29 20:53:39 -04:00
Grey Li
21b0aa6dd8 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
27e67dafc0
Remove unnecessary period in documentation 2018-06-17 12:12:37 +08:00
David Lord
fce1885f76
add javascript ajax example 2018-04-12 11:06:02 -07:00
David Lord
c3dd7b8e4c
rewrite tutorial docs and example 2018-04-09 00:53:25 -07:00
David Lord
cf5525f98a
add test_cli_runner for testing app.cli commands 2018-02-19 15:34:46 -08:00
David Lord
ae30fe7de0
document testing cli commands 2018-01-28 18:48:39 -08:00
David Lord
e97253e4c1
clean up JSON code and docs 2017-06-04 11:44:00 -07:00
David Lord
dbc70c9274
Merge remote-tracking branch 'remotes/origin/master' into json-mixin 2017-06-04 09:42:39 -07:00
bovarysme
fe27d04cc1 Fix a small oversight in the testing docs 2017-05-23 22:22:16 +02:00
David Lord
8858135043 Update testing.rst 2017-05-23 11:50:14 -07:00
Neil Grey
378a11f992 For Issue #2286: Updating test_flaskr to use yield inside fixture 2017-05-22 18:22:08 -07:00
Neil Grey
4e9d51b39b For Issue #2286: Fixing indenting of test_login_logout 2017-05-22 17:42:30 -07:00
Neil Grey
65fc888172 For Issue #2286: Replaces references to unittest in the documentation with pytest 2017-05-22 17:36:55 -07:00
David Lord
f22da31e7f 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
03857cc48a
use app.testing property instead of config 2017-04-13 16:32:44 -07:00
accraze
1caa9de628
Added missing testing config
fixes #1302
2017-04-13 16:27:58 -07:00
Sergio Díaz Sánchez
af11098057 Updated documentation for being able to use init_db method 2017-02-28 00:13:45 +01:00
teichopsia-
5044f3d610 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
5ebdd5dd74 Documentation updates 2016-08-19 21:21:43 +02:00
Adam Byrtek
5575faad92 Update documentation to use the getter only once 2016-08-19 21:20:59 +02:00
Adam Byrtek
f0d3b71a94 Updates after code review 2016-08-19 21:19:33 +02:00
Adam Byrtek
539569e5f2 Update the testing documentation 2016-08-19 21:19:17 +02:00
Adam Byrtek
23de58682c Remove redundant cache flag 2016-08-19 21:19:17 +02:00
José Carlos García
567fff9d0d 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
9a80fe691d minor revision of documentation. 2016-04-01 23:12:25 +02:00
Vincent Driessen
a4b335a64a 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
6bbbb72843 Add import flask module required to run code on Other Testing Tricks 2015-03-12 23:32:08 -04:00
Jochen Kupperschmidt
e3bb34ec24 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
bd2c8b631f Fix #1298 2014-12-30 12:08:17 +01:00
Nic Young
29ba05f5be Fix grammar in testing doc. 2014-12-29 22:11:17 -07:00
defuz
663802e976 docs: `with, for, self` 2014-11-05 07:39:54 +03:00
defuz
a8f570cc62 docs: :file:app.py, :file:yourapp/templates 2014-11-05 06:45:22 +03:00
defuz
3fa4fd0908 docs: http method names like `GET and POST` 2014-11-05 06:13:01 +03:00
Nico Revin
22219f51e5 Update doclinks
Fix redirects and broken links
2014-07-24 23:30:50 +04:00
Armin Ronacher
b9013ede22 Clarified how to test with click 2014-05-02 11:50:00 +01:00
Armin Ronacher
93073489a0 Documented changes on the g object some more 2013-06-05 10:02:33 +01:00
Armin Ronacher
1f6be7ff63 Added example on faking resources and context 2013-06-05 09:58:28 +01:00
lambdadi
a754d28302 Database improperly closed in example code
os.unlink(flaskr.DATABASE) causes the actual application database to be
purged; whereas, I reckon, one wants the _test_ database to be removed.
So every time I ran it, the test passed, but ended up crashing the live
app for want of a valid database.

I avoided using the sample code in examples/flaskr thus far, as I chose
to type out code from the turorial docs. The actual example code looks
good - at least to my beginner's eye.
2013-02-11 18:55:24 +05:30
Armin Ronacher
22af78a96f Removed outdated sentence in the testing docs 2012-09-21 01:02:42 +09:00
Daniel Neuhäuser
a43f73c75c s/Ify ou/If you/ typo 2011-08-26 10:13:54 +03:00
Armin Ronacher
1ea3d4ea53 Updated documentation regarding the session transactions 2011-08-25 16:13:43 +01:00
Armin Ronacher
c8663e8dab Fixed a typo in the docs. 2011-07-10 13:35:26 +02:00
Armin Ronacher
99c2defb43 Added an example of how to postprocess requests in the testing docs. 2011-07-10 13:34:21 +02:00
Armin Ronacher
7e55b5084d Mention the TESTING flag in the docs 2011-06-17 21:53:11 +02:00
matt swanson
f58c98904f fixing some wording issues on the testing page
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
2011-03-14 15:11:04 -04:00
matt swanson
6bdde49348 fixing cross-referenced links on testing page 2011-03-13 15:47:14 -09:00