tests.conftest

Description

Module for configuring Pytest.

Functions

app()

Create an app with testing environment.

auth_header(app, client)

Create an auth header from a given user that can be added to an http requests.

client(app)

Create a test client for making http requests.

factory(app)

Create a Factory from a database model.

runner(app)

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.