tests.conftest
Description
Module for configuring Pytest.
Functions
|
Create an app with testing environment. |
|
Create an auth header from a given user that can be added to an http requests. |
|
Create a test client for making http requests. |
|
Create a Factory from a database model. |
|
Create a CLI runner for testing CLI commands. |
- tests.conftest._remove_test_files(storage_path: str) None
Remove test files created in storage path.
- tests.conftest.app()
Create an app with testing environment.
- tests.conftest.auth_header(app: flask.app.Flask, client: tests.custom_flask_client.CustomFlaskClient)
Create an auth header from a given user that can be added to an http requests.
- tests.conftest.client(app: flask.app.Flask)
Create a test client for making http requests.
- tests.conftest.factory(app: flask.app.Flask)
Create a Factory from a database model.
- tests.conftest.runner(app: flask.app.Flask)
Create a CLI runner for testing CLI commands.