• Fix bug in :meth:pytest_flask.fixtures.live_server where SESSION_COOKIE_DOMAIN was set to false due to original_server_name defaulting to “localhost”. The new default is “localhost.localdomain”.
  • Drop support for python 3.6 and 3.5

1.2.0 (2021-02-26)

  • Remove deprecated :meth:live_server.url
  • fixture request_ctx is now deprecated and will be removed in the future
  • JSONReponse.json removed in favour of Werkzeug.wrappers.Response.json

1.1.0 (2020-11-08)

  • Speedup live server start time. Use socket instead of server pulling (#58) to check server availability and add new --live-server-wait option to set the live server wait timeout. Thanks to @jadkik.

1.0.0 (2020-03-03)


  • live_server is now session-scoped by default. This can be changed by using the live-server_scope option in your pytest.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.15.1 (2020-02-03)

  • Fix ImportError with Werkzeug 1.0.0rc1 (#105).

0.15.0 (2019-05-13)

  • Properly register the options marker (#97).

0.14.0 (2018-10-15)

  • New --live-server-host command-line option to set the host name used by the live_server fixture.

    Thanks @o1da for the PR (#90).

0.13.0 (2018-09-29)

  • JSONReponse now 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-flask now requires pytest>=3.6 (#84).
  • Add new --live-server-port option to select the port the live server will use (#82). Thanks @RazerM for the PR.
  • Now live_server will try to stop the server cleanly by emitting a SIGINT signal 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-stop in 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 LICENSE into 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-server options to prevent live server from starting automatically (#36), thanks to @EliRibble.
  • Fix title formatting in documentation.

0.9.0 (compared to 0.8.1)

  • Rename marker used to pass options to application, e.g. is now pytest.mark.options (#35).
  • Documentation badge points to the package documentation.
  • Add Travis CI configuration to ensure the tests are passed in supported environments (#32).


  • Minor changes in documentation.


  • New request_ctx fixture which contains all request relevant information (#29).


  • Use pytest monkeypath fixture to teardown application config (#27).


  • Better test coverage, e.g. tests for available fixtures and markers.


  • Use retina-ready badges in documentation (#21).


  • Use pytest monkeypatch fixture to rewrite live server name.



  • Add package documentation (#20).


  • Better documentation in README with reST formatting (#18), thanks to @greedo.


  • Release the random port before starting the application live server (#17), thanks to @davehunt.


  • Bind live server to a random port instead of 5000 or whatever is passed on the command line, so it’s possible to execute tests in parallel via pytest-dev/pytest-xdist (#15). Thanks to @davehunt.
  • Remove --liveserver-port option.


  • Fix typo in option help for --liveserver-port, thanks to @svenstaro.


  • Add live_server fixture uses to run application in the background (#11), thanks to @svenstaro.


  • Add client_class fixture for class-based tests.


  • Include package requirements into distribution (#8).


  • Explicitly pin package dependencies and their versions.


  • Use codecs module to open files to prevent possible errors on open files which contains non-ascii characters.


First release on PyPI.