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.

ivy_tests.test_ivy.helpers.globals.CURRENT_FRONTEND_CONFIG: <object object at 0x7ff3b25e9de0>#
exception ivy_tests.test_ivy.helpers.globals.InterruptedTest(test_interrupted)[source]#

Bases: BaseException

Indicate that a test tried to write global attributes while a test is running.

__init__(test_interrupted)[source]#
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)[source]#
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]#
ivy_tests.test_ivy.helpers.globals.setup_frontend_test(frontend, backend, device, test_data)[source]#
ivy_tests.test_ivy.helpers.globals.teardown_api_test()[source]#
ivy_tests.test_ivy.helpers.globals.teardown_frontend_test()[source]#

This should have hopefully given you an overview of the globals submodule, if you have any questions, please feel free to reach out on our discord!