David Lord
5f42989ce3
don't use Flask(__name__) in conftest
2018-02-28 06:50:49 -08:00
David Lord
310fbfcf64
revert copyright year to project start
...
add copyright header to files
2018-02-08 12:43:30 -08:00
David Lord
8bdf820e9b
reset standard os env after each test
2018-01-10 13:53:45 -08:00
Chuan Ma
5888d76342
pytest.yield_fixture deprecated in pytest 3.0+.
...
It's suggested to use pytest.fixture directly,
and flask already requires 'pytest>=3'.
2017-08-14 10:25:24 -04:00
David Lord
465922e5f1
clean up secret key docs
...
consistent key across docs and examples
consistent key across tests, set in conftest
2017-06-28 07:58:06 -07:00
Christian Stade-Schuldt
5b0b9717da
DRYing up the test suite using pytest fixtures ( #2306 )
...
* add fixtures to conftest.py
* use fixtures in test_appctx.py
* use fixtures in test_blueprints.py
* use fixtures in test_depreciations.py
* use fixtures in test_regressions.py
* use fixtures in test_reqctx.py
* use fixtures in test_templating.py
* use fixtures in test_user_error_handler.py
* use fixtures in test_views.py
* use fixtures in test_basics.py
* use fixtures in test_helpers.py
* use fixtures in test_testing.py
* update conftest.py
* make docstrings PEP-257 compliant
* cleanup
* switch dictonary format
* use pytest parameterization for test_json_as_unicode
2017-05-23 15:18:39 -07:00
bovarysme
5963cb5a51
Use the yield syntax in pytest's fixtures
2017-05-23 18:21:29 +02:00
Markus Unterwaditzer
6c359e0f53
Eliminate some resource warnings
2016-06-03 14:29:27 +02:00
Markus Unterwaditzer
d393597c50
Use recwarn everywhere
...
...instead of custom fixture. Also assert that no warnings are left over
after the test.
2016-06-03 13:59:47 +02:00
Parkayun
33534bb4a9
Happy New Year 2015
2015-01-02 11:35:00 +09:00
Petr Zemek
e41bf1e181
Remove two redundant empty lines.
...
PEP8 suggests to use two empty lines to separate functions, not three.
2014-10-27 11:13:03 +01:00
Markus Unterwaditzer
192da325f8
Testsuite is not a package
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
77d887526d
Rename fixture apps_tmpdir
2014-09-11 22:09:52 +02:00
Markus Unterwaditzer
861aa0db1f
Init global test_apps explicitly
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
d0cf5ef394
WIP
2014-09-11 22:09:51 +02:00
Markus Unterwaditzer
b1c0951ad6
Move fixtures
2014-09-11 22:09:51 +02:00