Changelog¶
1.2.0 (2021-02-26)¶
- Remove deprecated
:meth:live_server.url - fixture
request_ctx is now deprecatedand will be removed in the future JSONReponse.jsonremoved in favour ofWerkzeug.wrappers.Response.json
1.1.0 (2020-11-08)¶
1.0.0 (2020-03-03)¶
Important
live_serveris nowsession-scoped by default. This can be changed by using thelive-server_scopeoption in yourpytest.ini(#113). Thanks @havok2063 for the initial patch and @TWood67 for finishing it up.- pytest 5.2 or later is now required.
- Python 2.7 and 3.4 are no longer supported.
0.14.0 (2018-10-15)¶
0.13.0 (2018-09-29)¶
JSONReponsenow supports comparison directly with status codes:assert client.get('invalid-route', headers=[('Accept', 'application/json')]) == 404
Thanks @dusktreader for the PR (#86).
0.12.0 (2018-09-06)¶
pytest-flasknow requirespytest>=3.6(#84).- Add new
--live-server-portoption to select the port the live server will use (#82). Thanks @RazerM for the PR. - Now
live_serverwill try to stop the server cleanly by emitting aSIGINTsignal and waiting 5 seconds for the server to shutdown. If the server is still running after 5 seconds, it will be forcefully terminated. This behavior can be changed by passing--no-live-server-clean-stopin the command-line (#49). Thanks @jadkik for the PR. - Internal fixes silence pytest warnings, more visible now with
pytest-3.8.0(#84).
0.11.0 (compared to 0.10.0)¶
- Implement deployment using Travis, following in line with many other pytest plugins.
- Allow live server to handle concurrent requests (#56), thanks to @mattwbarry for the PR.
- Fix broken link to pytest documentation (#50), thanks to @jineshpaloor for the PR.
- Tox support (#48), thanks to @steenzout for the PR.
- Add
LICENSEinto distribution (#43), thanks to @danstender. - Minor typography improvements in documentation.
- Add changelog to documentation.
0.10.0 (compared to 0.9.0)¶
- Add
--start-live-server/--no-start-live-serveroptions to prevent live server from starting automatically (#36), thanks to @EliRibble. - Fix title formatting in documentation.
0.9.0 (compared to 0.8.1)¶
0.8.1¶
- Minor changes in documentation.
0.7.4¶
- Better test coverage, e.g. tests for available fixtures and markers.
0.7.2¶
- Use pytest
monkeypatchfixture to rewrite live server name.
0.7.1¶
- Single-sourcing package version (#24), as per “Python Packaging User Guide”.
0.6.2¶
0.6.1¶
0.6.0¶
- Fix typo in option help for
--liveserver-port, thanks to @svenstaro.
0.5.0¶
- Add
live_serverfixture uses to run application in the background (#11), thanks to @svenstaro.
0.4.0¶
- Add
client_classfixture for class-based tests.
0.3.3¶
- Explicitly pin package dependencies and their versions.
0.3.2¶
- Use
codecsmodule to open files to prevent possible errors on open files which contains non-ascii characters.
0.3.1¶
First release on PyPI.