pytest-flask
A set of pytest fixtures to test Flask applications (by pytest-dev)
mocksafe
Type-safe mocking for Python. (by dmayo3)
pytest-flask | mocksafe | |
---|---|---|
1 | 2 | |
476 | 3 | |
1.1% | - | |
7.3 | 6.4 | |
18 days ago | 11 months ago | |
Python | Python | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pytest-flask
Posts with mentions or reviews of pytest-flask.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Python: pytest accessing Flask session and request context variables.
@pytest.fixture(scope='module') def test_client( app ): """ Creates a test client. app.test_client() is able to submit HTTP requests. The app argument is the app() fixture above. """ with app.test_client() as testing_client: """ See: https://github.com/pytest-dev/pytest-flask/issues/69 Sessions are empty when testing #69 """ with testing_client.session_transaction() as session: session['Authorization'] = 'redacted' yield testing_client # Return to caller.
mocksafe
Posts with mentions or reviews of mocksafe.
We have used some of these posts to build our list of alternatives
and similar projects.
What are some alternatives?
When comparing pytest-flask and mocksafe you can also consider the following projects:
pymox - Pymox - Python mocking on steroids
pytest - The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
httpretty - Intercept HTTP requests at the Python socket level. Fakes the whole socket module
VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing
simple_html - fast, templateless html generation