generate_test_imports#
- omni.graph.tools.ogn.generate_test_imports(
- test_directory: Path,
- write_file: bool = False,
Generates a set of imports for the ogn test modules contained in a directory.
- Parameters:
test_directory – Directory containing all of the ogn test scripts. No subdirectories are checked.
write_file – If True then write the __init__.py file into the named directory, otherwise just return the contents
- Returns:
List of lines of Python code that comprise the test import code required in the __init__.py file