plasmapy.utils.pytest_helpers.pytest_helpers

Utilities to help with testing.

Functions

assert_can_handle_nparray(function_to_test)

Test for ability to handle numpy array quantities.

run_test(func[, args, kwargs, …])

Test that a function or class returns the expected result, raises the expected exception, or issues an expected warning for the supplied positional and keyword arguments.

run_test_equivalent_calls(*test_inputs[, …])

Test that different functions/inputs return equivalent results.