Update comments/docstrings in TestGenerator

Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
Werner Lewis 2022-09-14 12:59:32 +01:00
parent 3dc45198e6
commit 34d6d3e4e5

View file

@ -130,10 +130,12 @@ class BaseTarget(metaclass=ABCMeta):
class TestGenerator:
"""Generate test data."""
"""Generate test cases and write to data files."""
def __init__(self, options) -> None:
self.test_suite_directory = getattr(options, 'directory')
# Add file Targets which have been declared in other modules
# Update `targets` with an entry for each child class of BaseTarget.
# Each entry represents a file generated by the BaseTarget framework,
# and enables generating the .data files using the CLI.
self.targets.update({
subclass.target_basename: subclass.generate_tests
for subclass in BaseTarget.__subclasses__()