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 0x7ff46aae9da0>#
- 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.
- class ivy_tests.test_ivy.helpers.globals.TestData(test_fn, fn_tree, fn_name, supported_device_dtypes=None, is_method=False)[source]#
Bases:
object
-
fn_name:
str
#
-
fn_tree:
str
#
-
is_method:
bool
= False#
-
supported_device_dtypes:
dict
= None#
-
test_fn:
callable
#
-
fn_name:
- 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]#
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!