Nathan Land
f16e477b2a
Add tests for flask.json.dump() and test that jsonify correctly converts uuids.
8 years ago
Zev Averbach
863e5cca1b
added indentation to changed structure
8 years ago
Anton Sarukhanov
9121e109bd
Add test for get_version (CLI) ( #1884 )
8 years ago
SaturnR
55bd39c7f0
Update for python3 ( #1973 )
...
just updated print 'Initialized the database.' with print('Initialized the database.') to be python3 compliant
8 years ago
teichopsia-
5044f3d610
Update testing.rst ( #1987 )
...
Python 3.4.2
TypeError: Type str doesn't support the buffer API
8 years ago
Markus Unterwaditzer
136a833a8d
Bugfix: EnvironBuilder doesn't take `json`
8 years ago
Markus Unterwaditzer
5c4fa7e91c
Remove already defined method
8 years ago
Markus Unterwaditzer
62b0b6652a
testing: Make json a keyword arg
8 years ago
Adam Byrtek
866118302e
Remove _missing sentinel and update docs
8 years ago
Adam Byrtek
5ebdd5dd74
Documentation updates
8 years ago
Adam Byrtek
5575faad92
Update documentation to use the getter only once
8 years ago
Adam Byrtek
1df2788a8f
Use app_ctx instead of request_ctx to access the app
8 years ago
Adam Byrtek
f0d3b71a94
Updates after code review
8 years ago
Adam Byrtek
f0f458e0c5
Alternative solution for lack of response caching
8 years ago
Adam Byrtek
539569e5f2
Update the testing documentation
8 years ago
Adam Byrtek
23de58682c
Remove redundant `cache` flag
8 years ago
Adam Byrtek
c9ef500c5c
Mixin for JSON decoding code shared between request/response
8 years ago
Adam Byrtek
ca547f0ec3
JSON response tests and first draft of code that passes
8 years ago
Adam Byrtek
b099999c6c
Use proper exception type and update changelog
8 years ago
Adam Byrtek
6c5ef2bc5c
Use `content_type` kwarg instead of manipulating headers
8 years ago
Adam Byrtek
c4139e0e5d
JSON support for the Flask test client
8 years ago
Nate Prewitt
0f1cf50f97
adding in try around __import__ to catch invalid files/paths ( #1950 )
8 years ago
Auke Willem Oosterhoff
e6d7a43ccd
Use path of socket consistently accross document. ( #1976 )
...
* #1975 Use location of socket consistently accross document.
8 years ago
Jeff Widman
9359e9f911
Remove unused Redbaron dependency ( #1967 )
8 years ago
ahmedakef
c54d67adee
close <li> tag in lines (16,18) ( #1951 )
...
i noticed that <li> tag haven't closed in lines 15,18
which is bad practice as if i put "some thing : <h1> some text </h1>" in the text-area all the other articles become <h1> so big and color blue
8 years ago
Ioan Vancea
55f9af72e3
Added a missing module to import statement
8 years ago
Armin Ronacher
80b9453bdd
Merge pull request #1956 from shakib609/master
...
Update allowed_file function in fileuploads.rst
8 years ago
Shakib Hossain
fe53da45c5
Update allowed_file function in fileuploads.rst
...
Update allowed_file function to accept lowercase and uppercase file extensions
8 years ago
David Lord
495d834b99
Merge branch '0.11-maintenance'
8 years ago
David Lord
1e5746bb2b
persona is discontinued, remove example
...
closes #1947
8 years ago
David Lord
633b13e9b5
Merge branch '0.11-maintenance'
8 years ago
Kyle Lawlor
17d4cb3828
Address #1902 : Converts example/flaskr to have a setup.py ( #1945 )
...
* Converts example/flaskr to have a setup.py
Makes the flaskr app easier to run, ex. workflow:
- pip install --editable .
- export FLASK_APP=flaskr.flaskr
- flask initdb
- flask run
Testing is also easier now:
- python setup.py test
* Fixed an import error in flaskr/tests
- the statement `import flaskr` caused errors in python3
- `from . import flaskr` fixes the issue in 2.7.11 and 3.5.1
* Better project structure and updates the docs
- Re-factors *flaskr*'s project structure a bit
- Updates docs to make sense with the new structure
- Adds a new step about installing Flask apps with setuptools
- Switches first-person style writing to second-person (reads better IMO)
- Adds segments in *testing.rst* for running tests with setuptools
* Remove __init__.py from tests
- py.test recommends not using __init__.py
* Fix testing import errors
8 years ago
Hyunchel Kim
f19d3bd67e
Enhance tests.test_cli.test_find_best_app ( #1882 )
...
This commit adds a test case for `test_find_best_app` where
Module object does not contain Flask application.
Also cleans the function little bit to provides more meaningful comment.
8 years ago
Olexander Yermakov
b7a0cc61c5
Update installation documentation for using 'pip' command ( #1920 )
8 years ago
John Still
0c459762ea
clarify blueprint 404 error handling in docs
8 years ago
Antoine Catton
516ce59f95
Add the ability to combine MethodViews
9 years ago
georgschoelly
67e391921c
fix docs: name of url_value_preprocessor method ( #1932 )
...
This typo got introduced in 5da1fc2215
,
the original commit for the url_value_preprocessor decorator.
9 years ago
David Lord
1928f28a68
clean up code formatting in some docs
...
fix warnings while building docs
9 years ago
Kiss György
1b764cff93
Added runner fixture
9 years ago
Kiss György
b8e826c16b
Added tests, fixed some minor alignment problems.
9 years ago
Kiss György
1647179511
Added routes command, which shows all the endpoints registered for the app.
...
Orderable by rules, endpoints and methods. Shows up in the builtin command list.
9 years ago
David Lord
0e4607000d
re-add passthrough_errors to cli runner ( #1928 )
...
This got dropped during the cli simplification. Re: #1679
9 years ago
David Lord
cd1a9b7d54
remove unnecessary form action attributes
9 years ago
David Lord
d8c39f4b37
Revert "wtforms: Add missing closing tags in example ( #1917 )"
...
This reverts commit 146cba53e7
.
9 years ago
Ameya Pandilwar
663d786f68
Update documentation for upgrading Flask using 'pip' command ( #1918 )
9 years ago
Sudheer Satyanarayana
1ffd07ff5a
Fix small typo in python3 docs
...
Add missing 'be'
9 years ago
Baptiste Fontaine
146cba53e7
wtforms: Add missing closing tags in example ( #1917 )
9 years ago
dcfix
9f2b3d815e
Demonstrate how to add multiple urls to the same function endpoint #981 ( #1900 )
...
* Demonstrate how to add multiple urls to the same function endpoint
* Removed text as per untitaker, fixed spacing to be pep-8 compliant
9 years ago
Archie Roller
b8aca21a39
Fix #1911 ( #1913 )
9 years ago
Leo Tindall
c0087204e5
Documentation: Clarify instructions about changing row_factory for SQLite3 ( #1573 )
...
* Clarify instructions about changing row_factory
When I was working through the tutorial, this was very confusing to me; so, I've added the code and clarification that would have helped me get through it faster.
* Clarify the nature of Row objects
* Rewrite code example for further clarity.
9 years ago