Globals#
A state holder for testing, this is only intended to hold and store testing data to be used by the test helpers to prune unsupported data.
Should not be used inside any of the test functions.
- exception ivy_tests.test_ivy.helpers.globals.InterruptedTest(test_interruped)[source]#
Bases:
BaseException
Indicate that a test tried to write global attributes while a test is running.
- class ivy_tests.test_ivy.helpers.globals.TestData(test_fn, fn_tree, fn_name, supported_device_dtypes=None, is_method=False)[source]#
Bases:
object
- __init__(test_fn, fn_tree, fn_name, supported_device_dtypes=None, is_method=False)#
- fn_name: str#
- fn_tree: str#
- is_method: bool = False#
- supported_device_dtypes: dict = None#
- test_fn: callable#
- ivy_tests.test_ivy.helpers.globals.setup_api_test(backend, ground_truth_backend, device, test_data=None)[source]#