pytest-flask


Namepytest-flask JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/pytest-dev/pytest-flask
SummaryA set of py.test fixtures to test Flask applications.
upload_time2023-10-23 14:53:20
maintainer
docs_urlNone
authorVital Kudzelka
requires_python>=3.7
licenseMIT
keywords pytest flask testing
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            pytest-flask
============

.. image:: https://img.shields.io/pypi/v/pytest-flask.svg
    :target: https://pypi.python.org/pypi/pytest-flask
    :alt: PyPi version

.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-flask.svg
    :target: https://anaconda.org/conda-forge/pytest-flask
    :alt: conda-forge version

.. image:: https://github.com/pytest-dev/pytest-flask/workflows/build/badge.svg
    :target: https://github.com/pytest-dev/pytest-flask/actions
    :alt: CI status

.. image:: https://img.shields.io/pypi/pyversions/pytest-flask.svg
    :target: https://pypi.org/project/pytest-flask
    :alt: PyPi downloads

.. image:: https://readthedocs.org/projects/pytest-flask/badge/?version=latest
   :target: https://pytest-flask.readthedocs.org/en/latest/
   :alt: Documentation status

.. image:: https://img.shields.io/maintenance/yes/2022?color=blue
    :target: https://github.com/pytest-dev/pytest-flask
    :alt: Maintenance

.. image:: https://img.shields.io/github/last-commit/pytest-dev/pytest-flask?color=blue
    :target: https://github.com/pytest-dev/pytest-flask/commits/master
    :alt: GitHub last commit

.. image:: https://img.shields.io/github/issues-pr-closed-raw/pytest-dev/pytest-flask?color=blue
    :target: https://github.com/pytest-dev/pytest-flask/pulls?q=is%3Apr+is%3Aclosed
    :alt: GitHub closed pull requests

.. image:: https://img.shields.io/github/issues-closed/pytest-dev/pytest-flask?color=blue
    :target: https://github.com/pytest-dev/pytest-flask/issues?q=is%3Aissue+is%3Aclosed
    :alt: GitHub closed issues

.. image:: https://img.shields.io/pypi/dm/pytest-flask?color=blue
    :target: https://pypi.org/project/pytest-flask/
    :alt: PyPI - Downloads

.. image:: https://img.shields.io/github/languages/code-size/pytest-dev/pytest-flask?color=blue
    :target: https://github.com/pytest-dev/pytest-flask
    :alt: Code size

.. image:: https://img.shields.io/badge/license-MIT-blue.svg?color=blue
   :target: https://github.com/pytest-dev/pytest-flask/blob/master/LICENSE
   :alt: License

.. image:: https://img.shields.io/github/issues-raw/pytest-dev/pytest-flask.svg?color=blue
   :target: https://github.com/pytest-dev/pytest-flask/issues
   :alt: Issues

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
   :target: https://github.com/ambv/black
   :alt: style

An extension of `pytest`_ test runner which
provides a set of useful tools to simplify testing and development
of the Flask extensions and applications.

To view a more detailed list of extension features and examples go to
the `PyPI`_ overview page or
`package documentation`_.

How to start?
-------------

Considering the minimal flask `application factory`_ below in ``myapp.py`` as an example:

.. code-block:: python

   from flask import Flask

   def create_app():
      # create a minimal app
      app = Flask(__name__)

      # simple hello world view
      @app.route('/hello')
      def hello():
         return 'Hello, World!'

      return app

You first need to define your application fixture in ``conftest.py``:

.. code-block:: python

    from myapp import create_app

    @pytest.fixture
    def app():
        app = create_app()
        return app

Finally, install the extension with dependencies and run your test suite::

    $ pip install pytest-flask
    $ pytest

Contributing
------------

Don’t hesitate to create a `GitHub issue`_ for any bug or
suggestion. For more information check our contribution `guidelines`_.

.. _pytest: https://docs.pytest.org/en/stable/
.. _PyPI: https://pypi.python.org/pypi/pytest-flask
.. _Github issue: https://github.com/vitalk/pytest-flask/issues
.. _package documentation: http://pytest-flask.readthedocs.org/en/latest/
.. _guidelines: https://github.com/pytest-dev/pytest-flask/blob/master/CONTRIBUTING.rst
.. _application factory: https://flask.palletsprojects.com/patterns/appfactories/

.. _changelog:

Changelog
=========

1.3.0 (2023-10-23)
------------------

- Fix compatibility with ``Flask 3.0`` -- the consequence is that the deprecated and incompatible ``request_ctx`` has been removed.

1.2.1
------------------
- 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)
------------------

**Important**

- ``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.

.. _@havok2063: https://github.com/havok2063
.. _@TWood67: https://github.com/TWood67
.. _#113: https://github.com/pytest-dev/pytest-flask/pull/113

0.15.1 (2020-02-03)
-------------------

- Fix ``ImportError`` with ``Werkzeug 1.0.0rc1`` (`#105`_).

.. _#105: https://github.com/pytest-dev/pytest-flask/pull/105

0.15.0 (2019-05-13)
-------------------

- Properly register the ``options`` marker (`#97`_).

.. _#97: https://github.com/pytest-dev/pytest-flask/pull/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`_).

.. _@o1da: https://github.com/o1da
.. _#90: https://github.com/pytest-dev/pytest-flask/pull/90

0.13.0 (2018-09-29)
-------------------

- ``JSONReponse`` now supports comparison directly with status codes:

  .. code-block:: python

      assert client.get('invalid-route', headers=[('Accept', 'application/json')]) == 404

  Thanks `@dusktreader`_ for the PR (`#86`_).

.. _@dusktreader: https://github.com/dusktreader
.. _#86: https://github.com/pytest-dev/pytest-flask/pull/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`_).

.. _@jadkik: https://github.com/jadkik
.. _@RazerM: https://github.com/RazerM
.. _#49: https://github.com/pytest-dev/pytest-flask/issues/49
.. _#82: https://github.com/pytest-dev/pytest-flask/pull/82
.. _#84: https://github.com/pytest-dev/pytest-flask/pull/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.


.. _#43: https://github.com/vitalk/pytest-flask/issues/43
.. _#48: https://github.com/pytest-dev/pytest-flask/pull/48
.. _#50: https://github.com/pytest-dev/pytest-flask/pull/50
.. _#56: https://github.com/pytest-dev/pytest-flask/pull/56
.. _#58: steenzouthttps://github.com/pytest-dev/pytest-flask/pull/58
.. _@danstender: https://github.com/danstender
.. _@jadkik: https://github.com/jadkik
.. _@jineshpaloor: https://github.com/jineshpaloor
.. _@mattwbarry: https://github.com/mattwbarry
.. _@steenzout: https://github.com/steenzout


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.


.. _#36: https://github.com/vitalk/pytest-flask/issues/36
.. _@EliRibble: https://github.com/EliRibble


0.9.0 (compared to 0.8.1)
-------------------------

- Rename marker used to pass options to application, e.g. ``pytest.mark.app``
  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`_).


.. _#32: https://github.com/vitalk/pytest-flask/issues/32
.. _#35: https://github.com/vitalk/pytest-flask/issues/35

0.8.1
-----

- Minor changes in documentation.

0.8.0
-----

- New ``request_ctx`` fixture which contains all request relevant
  information (`#29`_).

.. _#29: https://github.com/vitalk/pytest-flask/issues/29

0.7.5
-----

- Use pytest ``monkeypath`` fixture to teardown application config (`#27`_).

.. _#27: https://github.com/vitalk/pytest-flask/issues/27

0.7.4
-----

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

0.7.3
-----

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

.. _#21: https://github.com/vitalk/pytest-flask/issues/21

0.7.2
-----

- Use pytest ``monkeypatch`` fixture to rewrite live server name.

0.7.1
-----

- Single-sourcing package version (`#24`_), as per `"Python Packaging User Guide"
  <https://packaging.python.org/en/latest/single_source_version.html#single-sourcing-the-version>`_.

.. _#24: https://github.com/vitalk/pytest-flask/issues/24

0.7.0
-----

- Add package documentation (`#20`_).

.. _#20: https://github.com/vitalk/pytest-flask/issues/20

0.6.3
-----

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


.. _#18: https://github.com/vitalk/pytest-flask/issues/18
.. _@greedo: https://github.com/greedo

0.6.2
-----

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


.. _#17: https://github.com/vitalk/pytest-flask/issues/17
.. _@davehunt: https://github.com/davehunt

0.6.1
-----

- 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.


.. _#15: https://github.com/vitalk/pytest-flask/issues/15
.. _@davehunt: https://github.com/davehunt

0.6.0
-----

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

.. _@svenstaro: https://github.com/svenstaro

0.5.0
-----

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


.. _#11: https://github.com/vitalk/pytest-flask/issues/11
.. _@svenstaro: https://github.com/svenstaro

0.4.0
-----

- Add ``client_class`` fixture for class-based tests.

0.3.4
-----

- Include package requirements into distribution (`#8`_).

.. _#8: https://github.com/vitalk/pytest-flask/issues/8

0.3.3
-----

- Explicitly pin package dependencies and their versions.

0.3.2
-----

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

0.3.1
-----

First release on PyPI.

The MIT License (MIT)

Copyright © 2014–2016 Vital Kudzelka and contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pytest-dev/pytest-flask",
    "name": "pytest-flask",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "pytest,flask,testing",
    "author": "Vital Kudzelka",
    "author_email": "vital.kudzelka@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/fb/23/32b36d2f769805c0f3069ca8d9eeee77b27fcf86d41d40c6061ddce51c7d/pytest-flask-1.3.0.tar.gz",
    "platform": null,
    "description": "pytest-flask\n============\n\n.. image:: https://img.shields.io/pypi/v/pytest-flask.svg\n    :target: https://pypi.python.org/pypi/pytest-flask\n    :alt: PyPi version\n\n.. image:: https://img.shields.io/conda/vn/conda-forge/pytest-flask.svg\n    :target: https://anaconda.org/conda-forge/pytest-flask\n    :alt: conda-forge version\n\n.. image:: https://github.com/pytest-dev/pytest-flask/workflows/build/badge.svg\n    :target: https://github.com/pytest-dev/pytest-flask/actions\n    :alt: CI status\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-flask.svg\n    :target: https://pypi.org/project/pytest-flask\n    :alt: PyPi downloads\n\n.. image:: https://readthedocs.org/projects/pytest-flask/badge/?version=latest\n   :target: https://pytest-flask.readthedocs.org/en/latest/\n   :alt: Documentation status\n\n.. image:: https://img.shields.io/maintenance/yes/2022?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask\n    :alt: Maintenance\n\n.. image:: https://img.shields.io/github/last-commit/pytest-dev/pytest-flask?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask/commits/master\n    :alt: GitHub last commit\n\n.. image:: https://img.shields.io/github/issues-pr-closed-raw/pytest-dev/pytest-flask?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask/pulls?q=is%3Apr+is%3Aclosed\n    :alt: GitHub closed pull requests\n\n.. image:: https://img.shields.io/github/issues-closed/pytest-dev/pytest-flask?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask/issues?q=is%3Aissue+is%3Aclosed\n    :alt: GitHub closed issues\n\n.. image:: https://img.shields.io/pypi/dm/pytest-flask?color=blue\n    :target: https://pypi.org/project/pytest-flask/\n    :alt: PyPI - Downloads\n\n.. image:: https://img.shields.io/github/languages/code-size/pytest-dev/pytest-flask?color=blue\n    :target: https://github.com/pytest-dev/pytest-flask\n    :alt: Code size\n\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg?color=blue\n   :target: https://github.com/pytest-dev/pytest-flask/blob/master/LICENSE\n   :alt: License\n\n.. image:: https://img.shields.io/github/issues-raw/pytest-dev/pytest-flask.svg?color=blue\n   :target: https://github.com/pytest-dev/pytest-flask/issues\n   :alt: Issues\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n   :target: https://github.com/ambv/black\n   :alt: style\n\nAn extension of `pytest`_ test runner which\nprovides a set of useful tools to simplify testing and development\nof the Flask extensions and applications.\n\nTo view a more detailed list of extension features and examples go to\nthe `PyPI`_ overview page or\n`package documentation`_.\n\nHow to start?\n-------------\n\nConsidering the minimal flask `application factory`_ below in ``myapp.py`` as an example:\n\n.. code-block:: python\n\n   from flask import Flask\n\n   def create_app():\n      # create a minimal app\n      app = Flask(__name__)\n\n      # simple hello world view\n      @app.route('/hello')\n      def hello():\n         return 'Hello, World!'\n\n      return app\n\nYou first need to define your application fixture in ``conftest.py``:\n\n.. code-block:: python\n\n    from myapp import create_app\n\n    @pytest.fixture\n    def app():\n        app = create_app()\n        return app\n\nFinally, install the extension with dependencies and run your test suite::\n\n    $ pip install pytest-flask\n    $ pytest\n\nContributing\n------------\n\nDon\u2019t hesitate to create a `GitHub issue`_ for any bug or\nsuggestion. For more information check our contribution `guidelines`_.\n\n.. _pytest: https://docs.pytest.org/en/stable/\n.. _PyPI: https://pypi.python.org/pypi/pytest-flask\n.. _Github issue: https://github.com/vitalk/pytest-flask/issues\n.. _package documentation: http://pytest-flask.readthedocs.org/en/latest/\n.. _guidelines: https://github.com/pytest-dev/pytest-flask/blob/master/CONTRIBUTING.rst\n.. _application factory: https://flask.palletsprojects.com/patterns/appfactories/\n\n.. _changelog:\n\nChangelog\n=========\n\n1.3.0 (2023-10-23)\n------------------\n\n- Fix compatibility with ``Flask 3.0`` -- the consequence is that the deprecated and incompatible ``request_ctx`` has been removed.\n\n1.2.1\n------------------\n- Fix bug in ``:meth:pytest_flask.fixtures.live_server``\n  where ``SESSION_COOKIE_DOMAIN`` was set to false due to\n  ``original_server_name`` defaulting to \"localhost\".\n  The new default is \"localhost.localdomain\".\n- Drop support for python 3.6 and 3.5\n\n1.2.0 (2021-02-26)\n------------------\n\n- Remove deprecated ``:meth:live_server.url``\n- fixture ``request_ctx is now deprecated``\n  and will be removed in the future\n- ``JSONReponse.json`` removed in favour of\n  ``Werkzeug.wrappers.Response.json``\n\n1.1.0 (2020-11-08)\n------------------\n\n- Speedup live server start time. Use `socket` instead of server\n  pulling (`#58`_) to check server availability and add new\n  ``--live-server-wait`` option to set the live server wait timeout.\n  Thanks to `@jadkik`_.\n\n\n1.0.0 (2020-03-03)\n------------------\n\n**Important**\n\n- ``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.\n\n- pytest 5.2 or later is now required.\n\n- Python 2.7 and 3.4 are no longer supported.\n\n.. _@havok2063: https://github.com/havok2063\n.. _@TWood67: https://github.com/TWood67\n.. _#113: https://github.com/pytest-dev/pytest-flask/pull/113\n\n0.15.1 (2020-02-03)\n-------------------\n\n- Fix ``ImportError`` with ``Werkzeug 1.0.0rc1`` (`#105`_).\n\n.. _#105: https://github.com/pytest-dev/pytest-flask/pull/105\n\n0.15.0 (2019-05-13)\n-------------------\n\n- Properly register the ``options`` marker (`#97`_).\n\n.. _#97: https://github.com/pytest-dev/pytest-flask/pull/97\n\n0.14.0 (2018-10-15)\n-------------------\n\n- New ``--live-server-host`` command-line option to set the host name used by\n  the ``live_server`` fixture.\n\n  Thanks `@o1da`_ for the PR (`#90`_).\n\n.. _@o1da: https://github.com/o1da\n.. _#90: https://github.com/pytest-dev/pytest-flask/pull/90\n\n0.13.0 (2018-09-29)\n-------------------\n\n- ``JSONReponse`` now supports comparison directly with status codes:\n\n  .. code-block:: python\n\n      assert client.get('invalid-route', headers=[('Accept', 'application/json')]) == 404\n\n  Thanks `@dusktreader`_ for the PR (`#86`_).\n\n.. _@dusktreader: https://github.com/dusktreader\n.. _#86: https://github.com/pytest-dev/pytest-flask/pull/86\n\n0.12.0 (2018-09-06)\n-------------------\n\n- ``pytest-flask`` now requires ``pytest>=3.6`` (`#84`_).\n\n- Add new ``--live-server-port`` option to select the port the live server will use (`#82`_).\n  Thanks `@RazerM`_ for the PR.\n\n- Now ``live_server`` will try to stop the server cleanly by emitting a ``SIGINT`` signal and\n  waiting 5 seconds for the server to shutdown. If the server is still running after 5 seconds,\n  it will be forcefully terminated. This behavior can be changed by passing\n  ``--no-live-server-clean-stop`` in the command-line (`#49`_).\n  Thanks `@jadkik`_ for the PR.\n\n- Internal fixes silence pytest warnings, more visible now with ``pytest-3.8.0`` (`#84`_).\n\n.. _@jadkik: https://github.com/jadkik\n.. _@RazerM: https://github.com/RazerM\n.. _#49: https://github.com/pytest-dev/pytest-flask/issues/49\n.. _#82: https://github.com/pytest-dev/pytest-flask/pull/82\n.. _#84: https://github.com/pytest-dev/pytest-flask/pull/84\n\n\n0.11.0 (compared to 0.10.0)\n---------------------------\n\n- Implement deployment using Travis, following in line with many other pytest plugins.\n\n- Allow live server to handle concurrent requests (`#56`_), thanks to\n  `@mattwbarry`_ for the PR.\n\n- Fix broken link to pytest documentation (`#50`_), thanks to\n  `@jineshpaloor`_ for the PR.\n\n- Tox support (`#48`_), thanks to `@steenzout`_ for the PR.\n\n- Add ``LICENSE`` into distribution (`#43`_), thanks to `@danstender`_.\n\n- Minor typography improvements in documentation.\n\n- Add changelog to documentation.\n\n\n.. _#43: https://github.com/vitalk/pytest-flask/issues/43\n.. _#48: https://github.com/pytest-dev/pytest-flask/pull/48\n.. _#50: https://github.com/pytest-dev/pytest-flask/pull/50\n.. _#56: https://github.com/pytest-dev/pytest-flask/pull/56\n.. _#58: steenzouthttps://github.com/pytest-dev/pytest-flask/pull/58\n.. _@danstender: https://github.com/danstender\n.. _@jadkik: https://github.com/jadkik\n.. _@jineshpaloor: https://github.com/jineshpaloor\n.. _@mattwbarry: https://github.com/mattwbarry\n.. _@steenzout: https://github.com/steenzout\n\n\n0.10.0 (compared to 0.9.0)\n--------------------------\n\n- Add ``--start-live-server``/``--no-start-live-server`` options to prevent\n  live server from starting automatically (`#36`_), thanks to `@EliRibble`_.\n\n- Fix title formatting in documentation.\n\n\n.. _#36: https://github.com/vitalk/pytest-flask/issues/36\n.. _@EliRibble: https://github.com/EliRibble\n\n\n0.9.0 (compared to 0.8.1)\n-------------------------\n\n- Rename marker used to pass options to application, e.g. ``pytest.mark.app``\n  is now ``pytest.mark.options`` (`#35`_).\n\n- Documentation badge points to the package documentation.\n\n- Add Travis CI configuration to ensure the tests are passed in supported\n  environments (`#32`_).\n\n\n.. _#32: https://github.com/vitalk/pytest-flask/issues/32\n.. _#35: https://github.com/vitalk/pytest-flask/issues/35\n\n0.8.1\n-----\n\n- Minor changes in documentation.\n\n0.8.0\n-----\n\n- New ``request_ctx`` fixture which contains all request relevant\n  information (`#29`_).\n\n.. _#29: https://github.com/vitalk/pytest-flask/issues/29\n\n0.7.5\n-----\n\n- Use pytest ``monkeypath`` fixture to teardown application config (`#27`_).\n\n.. _#27: https://github.com/vitalk/pytest-flask/issues/27\n\n0.7.4\n-----\n\n- Better test coverage, e.g. tests for available fixtures and markers.\n\n0.7.3\n-----\n\n- Use retina-ready badges in documentation (`#21`_).\n\n.. _#21: https://github.com/vitalk/pytest-flask/issues/21\n\n0.7.2\n-----\n\n- Use pytest ``monkeypatch`` fixture to rewrite live server name.\n\n0.7.1\n-----\n\n- Single-sourcing package version (`#24`_), as per `\"Python Packaging User Guide\"\n  <https://packaging.python.org/en/latest/single_source_version.html#single-sourcing-the-version>`_.\n\n.. _#24: https://github.com/vitalk/pytest-flask/issues/24\n\n0.7.0\n-----\n\n- Add package documentation (`#20`_).\n\n.. _#20: https://github.com/vitalk/pytest-flask/issues/20\n\n0.6.3\n-----\n\n- Better documentation in README with reST formatting (`#18`_), thanks\n  to `@greedo`_.\n\n\n.. _#18: https://github.com/vitalk/pytest-flask/issues/18\n.. _@greedo: https://github.com/greedo\n\n0.6.2\n-----\n\n- Release the random port before starting the application live server (`#17`_),\n  thanks to `@davehunt`_.\n\n\n.. _#17: https://github.com/vitalk/pytest-flask/issues/17\n.. _@davehunt: https://github.com/davehunt\n\n0.6.1\n-----\n\n- Bind live server to a random port instead of 5000 or whatever is passed on\n  the command line, so it\u2019s possible to execute tests in parallel via\n  pytest-dev/pytest-xdist (`#15`_). Thanks to `@davehunt`_.\n\n- Remove ``--liveserver-port`` option.\n\n\n.. _#15: https://github.com/vitalk/pytest-flask/issues/15\n.. _@davehunt: https://github.com/davehunt\n\n0.6.0\n-----\n\n- Fix typo in option help for ``--liveserver-port``, thanks to `@svenstaro`_.\n\n.. _@svenstaro: https://github.com/svenstaro\n\n0.5.0\n-----\n\n- Add ``live_server`` fixture uses to run application in the background (`#11`_),\n  thanks to `@svenstaro`_.\n\n\n.. _#11: https://github.com/vitalk/pytest-flask/issues/11\n.. _@svenstaro: https://github.com/svenstaro\n\n0.4.0\n-----\n\n- Add ``client_class`` fixture for class-based tests.\n\n0.3.4\n-----\n\n- Include package requirements into distribution (`#8`_).\n\n.. _#8: https://github.com/vitalk/pytest-flask/issues/8\n\n0.3.3\n-----\n\n- Explicitly pin package dependencies and their versions.\n\n0.3.2\n-----\n\n- Use ``codecs`` module to open files to prevent possible errors on open\n  files which contains non-ascii characters.\n\n0.3.1\n-----\n\nFirst release on PyPI.\n\nThe MIT License (MIT)\n\nCopyright \u00a9 2014\u20132016 Vital Kudzelka and contributors.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \u201cSoftware\u201d), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \u201cAS IS\u201d, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A set of py.test fixtures to test Flask applications.",
    "version": "1.3.0",
    "project_urls": {
        "Homepage": "https://github.com/pytest-dev/pytest-flask",
        "Issue tracker": "https://github.com/pytest-dev/pytest-flask/issues",
        "Source": "https://github.com/pytest-dev/pytest-flask"
    },
    "split_keywords": [
        "pytest",
        "flask",
        "testing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "de037a917fda3d0e96b4e80ab1f83a6628ec4ee4a882523b49417d3891bacc9e",
                "md5": "5d7f84757ff162e59e24cf6310fdde34",
                "sha256": "c0e36e6b0fddc3b91c4362661db83fa694d1feb91fa505475be6732b5bc8c253"
            },
            "downloads": -1,
            "filename": "pytest_flask-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5d7f84757ff162e59e24cf6310fdde34",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 13105,
            "upload_time": "2023-10-23T14:53:18",
            "upload_time_iso_8601": "2023-10-23T14:53:18.959265Z",
            "url": "https://files.pythonhosted.org/packages/de/03/7a917fda3d0e96b4e80ab1f83a6628ec4ee4a882523b49417d3891bacc9e/pytest_flask-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb2332b36d2f769805c0f3069ca8d9eeee77b27fcf86d41d40c6061ddce51c7d",
                "md5": "c1513c6304aca8b04986cafc3ee39953",
                "sha256": "58be1c97b21ba3c4d47e0a7691eb41007748506c36bf51004f78df10691fa95e"
            },
            "downloads": -1,
            "filename": "pytest-flask-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c1513c6304aca8b04986cafc3ee39953",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 35816,
            "upload_time": "2023-10-23T14:53:20",
            "upload_time_iso_8601": "2023-10-23T14:53:20.696327Z",
            "url": "https://files.pythonhosted.org/packages/fb/23/32b36d2f769805c0f3069ca8d9eeee77b27fcf86d41d40c6061ddce51c7d/pytest-flask-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-23 14:53:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pytest-dev",
    "github_project": "pytest-flask",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pytest-flask"
}
        
Elapsed time: 0.14704s