add_test_case_to_tested_extension#

omni.kit.test.add_test_case_to_tested_extension(
test_case: AsyncTestCase,
phony_submodule: str = '',
)#

Add test case to the tested extension.

Sets the __module__ attribute of the test case to associate it with the extension’s tests. Appends all tests from the test case to the extra tests list.

Parameters:
  • test_case (AsyncTestCase) – The test case instance to update.

  • phony_submodule (str) – Submodule string for module name modification; default is empty.