matflow.tests.conftest#

Configuration and standard fixtures for PyTest.

Functions

cli_runner

Pytest fixture to ensure the current config directory and key are used when invoking the CLI.

isolated_app_config

Pytest session-scoped fixture to apply a new default config for tests, and then restore the original config after testing has completed.

load_case_1

A load case object to compare to that generated in define_load.yaml.

modifiable_config

Pytest fixture to provide a fresh config which can be safely modified within the test without affecting other tests.

orientations_1

An orientations object to compare to that generated in task index 0 of define_orientations.yaml.

orientations_2

An orientations object to compare to that generated in task index 1 of define_orientations.yaml (the demo data file quaternions.txt).

pytest_collection_modifyitems

pytest_generate_tests

reload_template_components

Pytest fixture to reload the template components at the end of the test.

seeds_1

A microstructure seeds object to compare to that generated in define_seeds.yaml.

unload_config