mocksafe
Type-safe mocking for Python. (by dmayo3)
pytest-flask
A set of pytest fixtures to test Flask applications (by pytest-dev)
mocksafe | pytest-flask | |
---|---|---|
2 | 1 | |
3 | 476 | |
- | 1.1% | |
6.4 | 7.3 | |
11 months ago | 18 days 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.
mocksafe
Posts with mentions or reviews of mocksafe.
We have used some of these posts to build our list of alternatives
and similar projects.
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.
What are some alternatives?
When comparing mocksafe and pytest-flask you can also consider the following projects:
pytest - The pytest framework makes it easy to write small tests, yet scales to support complex functional testing
pymox - Pymox - Python mocking on steroids
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