pytest-flask icon indicating copy to clipboard operation
pytest-flask copied to clipboard

A set of pytest fixtures to test Flask applications

Results 20 pytest-flask issues
Sort by recently updated
recently updated
newest added

[This doc](http://pytest-flask.readthedocs.io/en/latest/features.html#client-application-test-client) expresses that we can access `session` without any extra context manager. However the following code does not return any session key (session is empty): ```python from flask import...

When downloading source code from git archive or pypi setup.py can not be executed. Running python setup.py returns the next error ``` /usr/lib/python3.9/site-packages/setuptools/config/expand.py:144: UserWarning: File '/tmp/portage/dev-python/pytest-flask-1.2.0/work/pytest-flask-1.2.0/CHANGELOG.rst' cannot be found warnings.warn(f"File...

bug

how to testing flask-login?

question

I use the liveserver fixture in the testing suite for my app. I have recently switched my app to run using [waitress](https://docs.pylonsproject.org/projects/waitress/en/latest/) in the production environment. To run using waitress,...

feature request

Following #138 From [multiprocessing docs ](https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods), > "On macOS, the spawn start method is now the default..." This causes `LiveServer` to throw a pickling error on `py39`. For now, we...

bug

_Not sure this is short-run actionable, and I don't think it's actually a pytest-flask bug. If others encounter this it may still make sense to add something like the workaround...

stale

I use pytest-flask with pytest-flask-sqlalchemy. It works fine, except for live_server. More details are available in [pytest-flask-sqlalchemy issue 17](https://github.com/jeancochrane/pytest-flask-sqlalchemy/issues/17) and [repo with example](https://github.com/citizen-stig/flask-pytest-samples) I'm sorry if this problem is not...

bug
stale

Not sure if Windows is supposed to be supported, but for me it fails on Windows 10 Python 2.7.12 with the following error when live_server fixture used: ``` request =...

bug
stale

Hi, there Could you include a SQLAlchemy example in the documentation? I'm using the following code but it doesn't work: import pytest from projeto import create_app, db as _db @pytest.fixture(scope='session')...

docs
stale

Please don't merge this yet. There is still one test that is not passing for a mysterious reason, and additionally this code still needs test cases of its own. I'm...