Commit graph

11 commits

Author SHA1 Message Date
Randy Liou
19d33ecfa7 Add coverage for Blueprints.(app_)context_processor
Test both context_processor and app_context_processor functions.
Two context parameters are added into the context: one added to
the blueprint locally; another added to the app globally. The test
asserts the behaviors in both blueprint scope and the app scope.
The coverage for flask.blueprints is increased by 3%.
2017-05-22 13:09:22 -07:00
Randy Liou
99eda625f6 Enhance code coverage for Blueprint.endpoint
Add basic test for the endpoint decorator for the Blueprint object.
2016-06-03 16:02:45 -07:00
Reuven
98581ec6d6 Use pytest.raises() instead of try/catch with asser 0
This is somehow more readable, and enable using the features of pytest's ExeptionInfo (such as errisinstance).
2016-03-04 13:30:40 +02:00
Parkayun
e05771ff60 Happy New Year 2015 2015-01-02 11:35:00 +09:00
Markus Unterwaditzer
93001352c6 Remove useless unittest imports 2014-09-21 16:47:38 +02:00
Markus Unterwaditzer
9dd95d8dbb Init global test_apps explicitly 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
1d0b83690e Remove flask superclass 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
304913a878 Remove useless classes 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
879becff31 Rewrite assertion methods 2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
1c40e7ad49 Tests pass now. 2014-09-11 22:09:50 +02:00
Markus Unterwaditzer
2ea00e48ad Made tests recognizable 2014-09-11 22:09:50 +02:00
Renamed from tests/blueprints.py (Browse further)