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.

fig_dir

fig_output_dir

has_marker

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.

nodeid_str

nodename_str

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

reference_array_data

reference_dir_for_test

reload_template_components

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

sanitize_nodeid

Return a sanitized pytest node ID that can be used as a legal file name on all platforms.

save_fig

Save a matplotlib figure.

seeds_1

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

unload_config